I’m programming some steering behaviors in 3D and am a little lost on figuring out how to figure out the necessarily torque impulse necessary to match a target orientation.
Ive been looking at some boids steering code and it seems like often the orientation is dependent on velocity. I’m trying to implement a space simulation so I want to do steering based on rotational thrust.
I’ve tried finding the difference between the two orientations (q2 * q1.inverse()) and then converting that to ruler angles. However I’m not sure that’s completely the same thing. Doing this also leads to some spinning out of control so I haven’t figured out how to try to go to the nearest target and then be able to stop.