Rotate entity pitch towards camera, despite yaw

Blitz3D Forums/Blitz3D Programming/Rotate entity pitch towards camera, despite yaw

Rob(Posted 2003) [#1]
One of my weird challenges again: If you can imagine a rectangle box being rotated around yaw, how can you get it to pitch towards you despite it's yaw?

usually, if you rotate pitch after yaw it'll be aligned by the yaw - a local rotation...


Ross C(Posted 2003) [#2]
How about using the DeltaPitch command?


Rob(Posted 2003) [#3]
Coo... wonder what that is?


Ross C(Posted 2003) [#4]
http://www.blitzbasic.com/b3ddocs/command.php?name=DeltaPitch&ref=3d_a-z

it apparently return the angle needed to rotate or something :)


TartanTangerine (was Indiepath)(Posted 2003) [#5]
Could you not use alignToVector to align Y axis to the vector.