Maven module :un.api : api-physics :
Class : un.api.physic.body.Motion
Extends/Implements : -
Subclasses : -

Current motion state of a rigid body.
author  Johann Sorel


Variables : velocity, force, angularVelocity, torque
Functions : Motion, getVelocity, getForce, getAngularVelocity, getTorque


protected Vector velocity

protected Vector force

protected Vector angularVelocity

protected Vector torque


public void Motion (int dim)


Get body velocity.
return  Vector velocity in unit/second
public Vector getVelocity ()


Get body currently applied forces.
return  Vector
public Vector getForce ()


Rotation angle x rotation speed.
return  Vector
public Vector getAngularVelocity ()


Similar to Force but for body rotation.
return  Vector
public Vector getTorque ()