Skip to content

Instantly share code, notes, and snippets.



Last active Aug 13, 2019
What would you like to do?
An example using the grouped data
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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.