19.4.18 setAngle

self = physics.Body:setAngle(angle)

Parameter

Type

Description

self

in physics.Body

The input Body

angle

in number

The angle of rotation in radians of the Body

angle

out physics.Body

The input Body is returned as the output

Updates the angle of rotation in radians of the body.

Returns the Body.

Introduced in platform.apiLevel = '2.0'