Documentation

Unity Engine

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 2 months ago

Definition

public readonly float GetRelativeAngle(PhysicsRotate rotation)

Parameters

The rotation to calculate the relative angle against.

Returns

Type

Description

floatThe relative angle, in radians.