Skip to content

Force

Force is an instantaneous push or pull on an object. Its added once fer physics simulation tick and then reset. Perfect for continous (applied every frame) movement eg, suspension simulation.

Animation Force

Methods

AddForce - Simply applies a force to a center of mass of a body.

AddForceAtPosition - Applies a force to a specific point on a body, eg, on wheel position.

cpp
getPhysicsSystem()->AddForce(bodyID, force);
getPhysicsSystem()->AddForceAtPosition(bodyID, force, position);