Question by
The3DPrintist · Aug 24, 2017 at 03:52 PM ·
javascriptrigidbodykinematic
how to modify another objects kinematic state?
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!
Comment