Controller:getVelocity

Returns the current linear velocity of the Controller, in meters per second.

vx, vy, vz = Controller:getVelocity()

Arguments

None

Returns

NameTypeDescription
vxnumberThe x component of the linear velocity.
vynumberThe y component of the linear velocity.
vznumberThe z component of the linear velocity.

See also