> depending on the quadrant where the vector is the box will point the wrong
> way.
> Couldn't figure out an easy solution for this. Any ideas? Thanks again!
The expression I gave you gives the angle of the vector from the positive X
direction, whereas I think you're looking for the angle from the Y
direction. You could fix this by first rotating the box 90 degrees to the
right to line it up with the X direction.
- Slime
[ http://www.slimeland.com/ ]
Post a reply to this message
|