check if a Quaternion is inside "range" (look at area)

Hello,

I would like to check, if an object is pointed “somehow” in a specific direction. Like 10°-+ in each direction?

You can check the angle between the two quaternions using Quaternion.Angle.

thank you, that was what I was looking for.

1 Like