So I’ve been trying to create a static camera angle that I could place in the corner of my scene while a third person controller is movable, a bit like the camera in the early Resident Evil games. I’m wondering how I would go about doing this. I also have this code which I’m trying to use to get the camera position to switch to another when the player enters a trigger.
var CameraPosition : Transform;
function Start(){
if(CameraPosition)
if(CameraPosition.renderer)
Camera.Position.renderer.enabled=false;
}
function OnTriggerEnter (other : Collider) {
if(CameraPosition other.gameObject.tag == "Player" ){
Camera.main.transform.position = CameraPosition.position;
Camera.main.transform.rotation = CameraPosition.rotation;
}
}