Bläddra i källkod

Added comment to PhysicsRigidBody::applyForce

Darryl Gough 13 år sedan
förälder
incheckning
ef6778736d
1 ändrade filer med 2 tillägg och 0 borttagningar
  1. 2 0
      gameplay/src/PhysicsRigidBody.h

+ 2 - 0
gameplay/src/PhysicsRigidBody.h

@@ -280,6 +280,8 @@ public:
 
     /**
      * Applies the given force to the rigid body (optionally, from the given relative position).
+     * Note that the total force applied depends on the duration of the next frame.
+     * If you want to apply an "impulse" irrespective of the frame duration, consider using applyImpulse.
      * 
      * @param force The force to be applied.
      * @param relativePosition The relative position from which to apply the force.