Collider:getLinearVelocity

Returns the linear velocity of the Collider. This is how fast the Collider is moving. There is also angular velocity, which is how fast the Collider is spinning.

vx, vy, vz = Collider:getLinearVelocity()

Arguments

None

Returns

NameTypeDescription
vxnumber The x velocity of the Collider, in meters per second.
vynumber The y velocity of the Collider, in meters per second.
vznumber The z velocity of the Collider, in meters per second.

See also