Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

transform.localRotation on wheels for a tank

$
0
0
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

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>