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
vxnumberThe x velocity of the Collider, in meters per second.
vynumberThe y velocity of the Collider, in meters per second.
vznumberThe z velocity of the Collider, in meters per second.

See also