Joint.getAngle

Returns the angle of a bearing.

Kind: Function

Environments: Game

Game

joint:getAngle(  )

Open the full Game reference

Parameters:

Name Type Description
bearing Joint The bearing.

Returns:

Type Description
number The bearing's angle. The angle ranges between -math.pi and +math.pi.