Browse Source

Particle Physics: particle velocity

Godzil 1 year ago
parent
commit
cb67d5b4ef
1 changed files with 3 additions and 1 deletions
  1. 3 1
      source/app.cpp

+ 3 - 1
source/app.cpp

@@ -50,7 +50,9 @@ void application::input()
 
 void application::update()
 {
-    // Nothing for now.
+    this->part->velocity = vec2(2, 0);
+
+    this->part->position += this->part->velocity;
 }
 
 void application::render()