Question by
willianjohns · Feb 13, 2017 at 11:33 PM ·
c#camerajavascripttransformontriggerenter
Rotate camera when colliding
Hello, excuse my English, I'm from outside the US. I would like to know how to rotate my camera by C # as in Mario 3d land / Mario 3d world, I have a cube collider in the scene, that when the character collides with the cube the camera rotates. Here's what I got to do from the script, I'm a beginner in C#. void OnTriggerEnter(Collider other) { if (other.gameObject.name == "cubetrigger") { [...] } }
Comment
Your answer
Follow this Question
Related Questions
How to get the position of the Main Camera 0 Answers
Translate between C# and javascript 1 Answer
Moving an Object Using a Trigger 0 Answers
Regarding transform.position in the roll a ball tutorial 0 Answers
why the camera rotate in the z axis 0 Answers