I’m facing strange problem but maybe there is some workaround…
I have a simple scene of flying simple plane where everything goes smooth except the point where I want to fly upward or downward (right left as well…) - the problem is with smooth follow script. When I fly with my simple plane straight up, the camera gets jerky and shaking.
Can anyone explain me why it’s happening? I’m attaching link to the scene file (same happens on Unity iPhone and Unity 2.5): http://www.motionvfx.com/tutorials/blog/unity/scene.zip
This might be adding some clunky frame rates to your issue.
if (rigidbody)
rigidbody.freezeRotation = false; //was true
//Predkosc latania do przodu
rigidbody.velocity = transform.forward * Time.deltaTime * FlyingSpeed;
}
I removed the freezeRotation as true in your planecontrol script. Also you may want to play around with the smooth follow script since it appears if you play around with the damping it improves slightly. You must of Interpolate for the rigidbody of the plane as well. Your example code does not have that enabled.
It looks like you are using the iPhone smooth follow here? is that correct?
Thanks Mark.
Yes, that’s correct, but the same happens under Unity Pro.
Unfreezing rotation and Interpolationg rigidbody doesn’t help at all. I still get the same effect.
Any other options I have?