R3d.Body:getLinearVelocity

From GiderosMobile

Available since: Gideros 2020.2
Class: R3d.Body

Description

Gets the body linear velocity.

(number), (number), (number) = r3d.Body:getLinearVelocity()

Return values

Returns (number) the body x axis linear velocity
Returns (number) the body y axis linear velocity
Returns (number) the body z axis linear velocity

Example

print(player1.body:getLinearVelocity())