I’m a beginner in Unity 3D so here’s my question:
I have an object moving in 3 dimensional space with constant speed, there’s a camera following the object. Camera faces the same direction and moves with the same speed as the object.
Then at some point I need to turn the object and its moving direction by 90 degrees, let’s say to the left of the object. The camera must do the same.
What is the (better) way of doing it? I read a bit about local and global spaces. So far I have only used global positions as it felt easier…
Can you please give me some direction on that or even better code sample.