I have a car using a standard setup I think. Four wheelCollider wheels and a rigidBody at the top of the hierarchy.
I want to add a fifth wheelCollider, but I want this one to be spinning around the y-axis. Like a spinning top, not like a spinning coin.
My car is getting stuck head-on facing walls and fences and corners. I want to add a smart wheelCollider to the front of my car, center-wheel height, that can effectively drive me out of those situations.
I can add a wheelCollider to a new, separate gameobject with its own rigidBody and rotate that gameobject’s transform to align the wheelCollider as I need it.
But I can’t figure out how to add that system into my existing car.
If I drag it in as-is, it won’t move with the car because it has its own rigidBody.
If I remove the rigidBody the wheelCollider snaps back to the car’s own wheel alignment, ignoring the gameobject’s transform.
If I keep it as a separate gameobject and connect them with a fixedJoint, well it was hard to see what it was doing but on some larger scale tests it was clear that collisions with the fifth “wheel” were doing crazy stuff with the attachment and were not treating the car as though it is “hard” connected. And the physics always end up exploding.
Is there a clever way to do this?
Or is there a better way to get vehicles – that have NO reverse and a 40 degree turn radius – out of “stuck” situations?