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 12 days 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.