Joint.getAngle
Returns the angle of a bearing.
Kind: Function
Environments: Game
Game
joint:getAngle( )
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. |