Miloslav Ciz vor 4 Jahren
Ursprung
Commit
cd3fb7bd4a
1 geänderte Dateien mit 10 neuen und 0 gelöschten Zeilen
  1. 10 0
      tinyphysicsengine.h

+ 10 - 0
tinyphysicsengine.h

@@ -1142,6 +1142,16 @@ printf("---\n");
   p1 = TPE_vec3Minus(collisionPoint,body1->position);
   p2 = TPE_vec3Minus(collisionPoint,body2->position);
 
+/*
+  TODO:
+
+  We don't have to compute second body's final velocity! From momentum
+  preservation it can be computer from the initial total momentum and first
+  body's new momentum.
+
+  ALSO: compute the rotation velocity from preservaion of rotational kinetic
+  energy!
+*/
 
 // separate the bodies: