Collider:getLinearVelocity

Edit

Returns the world-space linear velocity of the center of mass of the Collider, in meters per second.

vx, vy, vz = Collider:getLinearVelocity()

Arguments

None

Returns

NameTypeDescription
vxnumber The x component of the velocity.
vynumber The y component of the velocity.
vznumber The z component of the velocity.

Notes

Currently, velocity is clamped to 500 meters per second to improve stability of the simulation.

See also