R3d.Body:getLinearVelocity

From GiderosMobile
Revision as of 09:23, 18 December 2025 by MoKaLux (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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())