Explorar el Código

Added comment to PhysicsRigidBody::applyForce

Darryl Gough hace 13 años
padre
commit
ef6778736d
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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).
      * 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 force The force to be applied.
      * @param relativePosition The relative position from which to apply the force.
      * @param relativePosition The relative position from which to apply the force.