How to rotate wheel colliders on the Y axis since they can't be rotated in the editor?
Hello!
So basically I have taken the basic car controller script that comes in the standard assets and set the acceleration to 1 (so the car is constantly accelerating). In my project this seems to work well. I'm using it to make an enemy car that constantly follows (and shoots) the player.
However since I'm making a mobile game, using the Update() function and Transform.LookAt() is pretty expensive (and has other issues such as spinning the car too fast). While I could make this work with dynamic spawning, I'd just like to get stuff done right.
This line really confused me in the Wheel Collider docs: You do not turn or roll WheelCollider objects to control the car - the objects that have the WheelCollider attached should always be fixed relative to the car itself. Does this mean that I have to rotate the entire car? This seems to make no sense as that means I need to use Transform.LookAt() regardless.
In the editor I can't rotate the wheel colliders of the enemy car on the Y axis (so the car drivers left or right). In the docs not much is said about rotation. Is it possible to rotate the wheel colliders on the Y axis?
Thanks for your ideas and advice!