Question by
Gillissie · Jun 11, 2020 at 05:42 AM ·
transform.rotationtransform.lookat
How to rotate around an axis so that another axis always points down? (see images)
I'm using LookAt() to make characters look at things (like the camera). However, the more their body is turned away from the object, the more their head tilts strangely instead of always keeping the X axis down. How would I keep the X axis always pointing downward to avoid the head tilting strangely like that?
figure-1-3.jpg
(472.2 kB)
Comment