Quantcast
Channel: Questions in topic: "addforce"
Viewing all articles
Browse latest Browse all 1264

Kinematic sphere doesn't move

$
0
0
Hi! I'm still working on my app. I have this problem: I'm working with Leap Motion, so I use both hands as cursors. I use "CleanRobotFullRightHand" and the other. I have added to the skeleton of the hand (specifically, at the end of the middle finger) an sphere, with a rigid body. Firstly, it's disabled and IsKinematic = true. The fact is that when LeapMotion recognize a gesture (it's already developed), it has to throw the ball straightforward, so I use this: public GameObject esph; public Rigidbody rigidEsph; public void Start(){ esfera = cuerpoEsfera.gameObject; esfera.SetActive (false); rigidEsph.IsKinematic = true; } .... public void shot() { esfera.SetActive (true); cuerpoEsfera.isKinematic = false; cuerpoEsfera.AddForce (transform.forward * 200); } Why doesn't the ball move itself? Thanks in advance!

Viewing all articles
Browse latest Browse all 1264

Trending Articles



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