Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public float targetVelocity; // target speed of rotation
- public float torque; // a torque to be applied to each wheel
- public Wheel wheel; // a group of setting related to wheels
- // Start is called before the first frame update
- void Start()
- {
- foreach(Rigidbody rb in wheel.wheels)
- {
- rb.mass = wheel.wheelMass;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement