Hi Nina,
I have exactly same code as in the Lecture. Only difference is that I have used time line.
By the way, meanwhile I found the problem.
- If you have time line.
- Player ship has box collider and rigid body without kinamatics.
- Then some how the code in following line is making problem.
As the y value is in minus as the ship is lowered little bit compared to the camera.
And that is why ship jitters as well as when we start the game ship is sliding back of the camera because of the negative value and gravity. then ship always lag behind the camera.
“float pitchDueToPosition = transform.localPosition.y * positionPitchFactor;”
Solution should be bit decent that i dont have for this trap. But at least i found the problem
In the lecture Ben is using waypoint circuit loop which does not let player rig go.
Working solution:
It works when we activate is kinematics in the rigidbody so that physics does not work. and everything works perfact.
To find out this bug, today i spent almost 4 hours. And 4 times new timeline, thinking that my time line has bug.
Thanks again for your prompt reply.