Hello, I have a sphere in which the main camera is attached to. This works fine but when I try to move the sphere using the add force method of the rigid body class, everything attached to the sphere including the camera will rotate with it. How would I stop the rotation of the camera but still allow the sphere to rotate as well as the camera still follow the sphere around.
using UnityEngine;using System.Collections;public class IcoSphereControlle - Pastebin.com This is a pastebin of the script.
I think this is more so the problem of a child object following the parent objects rotation (as it should be). The rigidbody isnt adding force to the camera.
If you want the child camera to not be affect by the parent, then many people reply with just not habing the child be a child anymore and have it follow the way you want through scripting. Or you can find ways of undoing the rotations.
You can look at this video for an example of what to do
Or you can google up on it. You should get many results 