How To Convert A Direction On The Yaw Axis To One Of Four Directions?

  1. What do you want to achieve? Keep it simple and clear!
    I want to pick either “Up”, “Down”, “Left”, or “Right” from a Yaw Direction

  2. What is the issue? Include screenshots / videos if possible!
    The Solutions I’ve tried return unexpected outcomes

Here’s an example of what I would like to achieve

What information do you have available from this mysterious yaw direction?

(e.g. angle, if so relative to what?)

An angle relative to a part which represents an agent

So you only need to worry about 0->360 deg? Assuming 0deg == right, 90deg == up, then:

315 < x | x < 45 -- Right (0 +- 45)
45 < x < 135 -- Up (90 +- 45)
135 < x < 225 -- Left (180 +-45)
225 < x < 315 -- Down (278 +-45)
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.