GetRelativeAngle(PhysicsRotate)
Get the relative angle between this rotation and the specified rotation. The limits of this are +/- PhysicsMath.PI.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEngine.LowLevelPhysics2D
- Assembly: UnityEngine.Physics2DModule
public readonly float GetRelativeAngle(PhysicsRotate rotation)
Parameters
The rotation to calculate the relative angle against.
Returns
Type | Description |
|---|---|
| float | The relative angle, in radians. |