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

how to modify another objects kinematic state?

$
0
0
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!

Viewing all articles
Browse latest Browse all 1875

Trending Articles



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