I am making a game where a ball falls into a trigger and then the ball freezes by setting it's kinematic state to true.
#pragma strict
var ball: Rigidbody;
function Start () {
}
function Update () {
}
function OnTriggerEnter (other : Collider) {
Debug.Log("finished the level!");
//change ball's kinematic state here
}
how would I do this?
Thanks!
↧