Quantcast
Channel: Questions in topic: "javascipt"
Viewing all articles
Browse latest Browse all 1875

Rotate camera when colliding

$
0
0
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") { [...] } }`

Viewing all articles
Browse latest Browse all 1875

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>