self:get_platform_angular_velocity
Client
Retrieves the angular velocity of the moving platform the character body is currently standing on
Syntax
local velocity = self:get_platform_angular_velocity()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
vector3 | velocity | Platform angular velocity as {x, y, z} |
Examples
local entity = physics.character.create()
local velocity = entity:get_platform_angular_velocity()
core.engine.print("info", "Character body velocity:", util.table.unpack(velocity))