Take Direction (rotation)

Take Direction (rotation)

lobo_alcalino
Enthusiast Enthusiast
590 Views
1 Reply
Message 1 of 2

Take Direction (rotation)

lobo_alcalino
Enthusiast
Enthusiast

Hi there!

Is there a way (node) that I can use in order to act like a trigger depending on the rotation of an object in relation to the World? (I'm sorry if the question is too dumb).

e.g.: If object is facing -Y, then...

Accepted solutions (1)
591 Views
1 Reply
Reply (1)
Message 2 of 2

jmreinhart
Advisor
Advisor
Accepted solution

Not a dumb question, just a little vague but I think I get what you're asking.  I've attached a scene file example.

I use a vectorProduct node to get the direction the objects X axis is pointing in worldSpace. Then I'm getting the angle between than vector and the global +Y vector. If the angle is less than 90 then the object is pointing up, if not then it is pointing down.

jonahrnhrt_0-1592658122545.png