This only works on a single object. As soon as you have multiple objects in the scene, they fight over the camera’s location. Also, shouldn’t you be adding a value into the rotate vector’s rotation… they’re all zeros.
This only works on a single object. As soon as you have multiple objects in the scene, they fight over the camera’s location. Also, shouldn’t you be adding a value into the rotate vector’s rotation… they’re all zeros.