Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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 13 days ago

Definition

  • Type: Method
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public readonly float GetRelativeAngle(PhysicsRotate rotation)

Parameters

The rotation to calculate the relative angle against.

Returns

Type

Description

floatThe relative angle, in radians.