Body:getAngle

Body:getAngle

Get the angle of the body.

The angle is measured in radians. If you need to transform it to degrees, use math.deg.

A value of 0 radians will mean "looking to the right". Although radians increase counter-clockwise, the y axis points down so it becomes clockwise from our point of view.

Function

Synopsis

angle = Body:getAngle( )

Arguments

None.

Returns

number angle
The angle in radians.

See Also


doc_love
2017-03-21 15:40:55
Comments
Leave a Comment

Please login to continue.