Hi all,
how would i go about getting a game object, or camera to stop and retain its current position within the game world upon a collision? i am still new to the scripting language…here’s what i have.
CODE
function OnCollisionEnter (collisionInfo : Collision) {
if (collisionInfo.gameObject.tag == “Player”){
//I would like a specific gameObject to stop in its tracks, upon colliding with an object.
}
}
The syntax is lost on me…any tips/suggestions? thanks!