|
I have a camera linked to a rigidbody sphere parent that's rolling down a spiralling tunnel. The camera is presently rotating wildly (because the rigidbody sphere is) - what script(s) could I use to make the camera ignore the local rigidbody rotation down the spiral? I don't want to control the camera or sphere by mouse or keyboard input.
(comments are locked)
|
|
Connect the camera to a new GameObject and add to this gameobject a script with:
next, in inspector of the gameobject, set Thanks, Jaap - exactly what I needed, that technique of using a 'middleman' invisible gameobject to do the follow is half the solution :-) Why is LateUpdate used rather than Update?
Mar 10 '10 at 07:44 PM
Squirrel
doesn't matter much, but the lateupdate makes that you're certain the position of the object to track is already updated so you don't get lag/jitter in camera.
Mar 11 '10 at 03:33 AM
Jaap Kreijkamp
(comments are locked)
|
|
that "Empty GameObject Trick" is like this..
(comments are locked)
|
