You are here: Lua Scripting Resources eGuide > Lua Scripting API Reference Guide > Physics Library > angle

19.4.3 angle

angle = physics.Body:angle()

Parameter

Type

Description

self

in physics.Body

The input Body

angle

out number

The angle of the Body in radians

Returns the angle in radians of the orientation of the body.

Introduced in platform.apiLevel = '2.0'