Original Post
Hi guys, I'm using some basic steering behaviors to move my objects; I'm having problems with the orientations though; in particular when the object makes a complete u-turn. In that scenario the point mass comes to a stop and essentially reverses; I really want it to actually turn and start heading the opposite direction; either that and/or have it stop, then rotate 180 deg and start heading the other direction. If I have an orientation pointing down the positive z-axis and I want it pointing down the negative z-axis it's easy to think "alright, I'll just rotate around the y-axis Pi rads" but how do I do that programatically, regardless of it's current orientation ? I think if I understand that I can solve the problem above. This is for a spaceship in full 3D space. Thanks.