Manually apply an external force (in local-space) to the body at a given point (in world-space). If the point is not at the center of mass of the body, it will also generate some torque and therefore, change the angular velocity of the body. If the body is sleeping, calling this method will wake it up. Note that the force will we added to the sum of the applied forces and that this sum will be res
| 200 | * @param point The point where the force is applied (in world-space) |
| 201 | */ |
| 202 | void RigidBody::applyLocalForceAtWorldPosition(const Vector3& force, const Vector3& point) { |
| 203 | |
| 204 | // Convert the local-space force to world-space |
| 205 | const Vector3 worldForce = mWorld.mTransformComponents.getTransform(mEntity).getOrientation() * force; |
| 206 | |
| 207 | applyWorldForceAtWorldPosition(worldForce, point); |
| 208 | } |
| 209 | |
| 210 | // Manually apply an external force (in world-space) to the body at a given point (in world-space). |
| 211 | /// If the point is not at the center of mass of the body, it will also |
no outgoing calls