Last active
August 13, 2019 03:30
-
-
Save nibasya/082ac3318f53183b0c0833eb7ca35616 to your computer and use it in GitHub Desktop.
An example using the grouped data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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