Node.getDirection without y

Ask the title says, how can I get the direction of a node without a y (so that the direction vector is on the xz plane)?

You could get the direction, place y to 0, and normalize back ? this would only create a weird one if the vector is straight up which should be disregarded in your case I guess.

2 Likes

Thanks!

It works perfectly!

1 Like