Hi everybody, How I can do cinematics into the gameplay... in example... I switch a button, the camera show te opening door and come back to the player? Thank you in advanced.
Yes, but I mean, I want to move the camera to the door and then come back to the player... some tutorial or video? Is like the UDK cinematics. There is something like that?
check out the 3d tutorial in the resources section..the lerpz one..one of the later chapters show how to do that. basically when an event is triggered, you need to make 2 things happen 1. start playing the animation(of-course) 2. switch to a different camera which is made to point at the object (in your case the door which is opening)
I think what Angel38 means is that instead of switching to another camera, the camera following the player detaches from the player, moves through the game level and looks at the door opening, then moves back through the level to its original position watching the player. I am new to Unity but would expect the switch to trigger a camera move script that would perform the actions of moving the camera, dont ask me how to write this script because at the moment I dont have the faintest idea!
in that case you need to perform actions on the transform : position and look at when the trigger is set, first change the lookat and set it to the new target Code (csharp): transform.LookAt(target); //target is a vector3, has to be in the (x,y,z) format and then move the camera position Code (csharp): transform.position = position; //position is a vector3, has to be in the (x,y,z) format