I have a sphere that moves from one point to another. The player loads with their back to it. I want the player to be forced to slowly turn around and face the object, andenter code here
stay looking at it no matter where it goes. This is what I have so far…I thought it would be a simple matter of using LookAt(and maybe disabling mouse look?) but I can’t seem to get it to do anything.
The target is set as the sphere. I tried placing the script in the first person controller and then the main camera to no effect.
var target : Transform;
function Update(){
var script = GetComponent("MouseLook");
script.enabled = false;
transform.LookAt(target);
}
Many thanks