I attached a smooth follow script to my camera to follow a biplane, and it jitters like crazy. Any good ideas on what to do?
Make the rigidbody use interpolation.
Thanks. Why does it do that and what does Interpolate mean? And now for another question…
How do I limit rotation. I have
if (transform.rotation.x > 75) {
transform.rotation.x = 75;
}
if (transform.rotation.x > 285) {
transform.rotation.x = 285;
}
but it doesn’t work. Thanks!
http://unity3d.com/Documentation/ScriptReference/Rigidbody-interpolation.html
You need to use euler angles and not quaternions:
http://unity3d.com/Documentation/ScriptReference/Transform-eulerAngles.html
I’m not exactly sure how to do that. Can you give me an example, por favor? Gracias.
I don’t have it in front of me, but I have the recollection that one of the included controller scripts in Standard Assets uses a Clamp function on the transform to restrict camera rotation.
I’ll look when I get home if you can’t find it.
No, I can’t find it. Thanks for all your help, guys.
Standard Assets/Camera Scripts/Mouse Look.cs
urg… Isn’t there any way to do it in Javascript. I can’t code C for my life and I don’t want to try and recode the rest of the file just to work with that.