Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

No rigid body code working

$
0
0
I'm working on a game I recently posted about (another topic) and I'm using rigid bodies for the characters. I just realized today I'm not moving the character's rigid body using methods like AddForce/AddTorque. When I went to code this nothing worked! Not even the simple code below (moving object forward). What did I miss? Thanks! =).


Code (CSharp):
  1. public class lamboControll : MonoBehaviour {
  2.  
  3. private Rigidbody rbdy;
  4. private float lamboSpeed = 10.1f;
  5.  
  6. void Start() {
  7.  
  8.         rbdy =...
No rigid body code working

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



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