Advertisement
Guest User

Untitled

a guest
Aug 24th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. public float targetVelocity; // target speed of rotation
  2. public float torque; // a torque to be applied to each wheel
  3. public Wheel wheel; // a group of setting related to wheels
  4.  
  5. // Start is called before the first frame update
  6. void Start()
  7. {
  8. foreach(Rigidbody rb in wheel.wheels)
  9. {
  10. rb.mass = wheel.wheelMass;
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement