Hello! I downloaded unity yesterday for a school project and I am completly new to this type of development.
I have a tank model with 8 wheels on each side. These are children to the tank body that is a rigidbody.
The labhint says that when the tank moves, so should the wheels and we are given a hint to use transform.localRotation to make this happen. This is how I went about it.
// Rotation in the x axis.
Quaternion wheelRotation = Quaternion.Euler(turnRate, 0f, 0f);...
transform.localRotation on wheels for a tank
I have a tank model with 8 wheels on each side. These are children to the tank body that is a rigidbody.
The labhint says that when the tank moves, so should the wheels and we are given a hint to use transform.localRotation to make this happen. This is how I went about it.
// Rotation in the x axis.
Quaternion wheelRotation = Quaternion.Euler(turnRate, 0f, 0f);...
transform.localRotation on wheels for a tank