Hey guys,
We are working on a project that revolves around driving different types of vehicles. We have already created a basic driving mechanism that works very well, but one of the problems we are having is that the vehicles are obviously rotating around their middle (or more precisely, around their center of mass) which doesn't look too realistic. Moving the center of mass towards the front of the vehicle gave a bit better result, but it makes the vehicles more unstable on frontal collisions and bouncing when encountering terrain unevenness.
Our goal is to have the front wheels turn first and "pull" the rest of the car behind them.
We are not using wheel colliders, rather one rigidbody (attached to the body of the car) to which we add forces and torque.
The code itself is pretty simple, it calculates the turn vector with regards to car mass, user input and some other parameters that we added to each vehicle to differentiate them, and then add torque to the car rigidbody with regards to that vector.
My question is, have you encountered this problem, and what would be your suggestion on solving it?
Thanks
↧