- Home /
Quaternion Slerp is translating object
Helllo,
I currently have 2 scripts one for the camera and the other for the character, since its an airplane, im taking the rotations mostly from the camera. The weird thing is, when plugging the pitch the airplane will slowly ascend, i can pitch up and down, but the movement always happen towards the same direction, even if there is no translation code. yaw and roll work fine, but that specific axis gives me trouble.
I tried using the rotation logic in the airplane alone and that problem doesnt occur,but then i have a few problems centering the camera the way i want it to.
Could anyone that came across something similar or understands what is happening please tell me why that axis during a quaternion slerp rotation, is forcing upwards movement? I have no translate activated whatesoever.
Answer by ergomantra · Jun 11, 2020 at 05:45 PM
It is a silly mistake for those that may come to find a problem similar to this, if you have a rigidbody and have a collider, that is why.