How can I reverse the inclination of the vehicle in the Wheelcollider … so that the vehicle is inclined into the road on turns…
The centrifugal force will be reversed…
How can I do it ?
How can I reverse the inclination of the vehicle in the Wheelcollider … so that the vehicle is inclined into the road on turns…
The centrifugal force will be reversed…
How can I do it ?
If drag is not enough, to keep vehicle on the track, I suggest to calculate and apply opposite force to centrifugal, in direction of “center”.
I am amateur game developer , I understand your idea but I dont know how to make it
I won’t be going int equations, but if you use RigidBody of your vehicle, or wheels, then you can use RigidBody and add force. Check documentation
in Public Methods section you have few types of force to add.
I suggest give a play with them and look for examples, scattered on the net / forum.
Just to give a hint, you will need use relevant vectors, pointing right direction and add force.
Thanks Bro, I will try it
A simple hack is putting the center of mass below the ground level. However, the car will lean in the opposite direction also when accelerating/braking, not only on turns.
Bro, I’ve tried your idea … really it is a simple hack
so , your idea worked but like you said happened … " opposite happened not only direction , accelerating/braking happened " and it wasn’t looks cool and it hasn’t got comfortable gameplay…
thanks anyway ![]()
I am prpbably beeign stupid but i am having the same problem i dont know where to start trying to calcuate the force that i would need to apply to counteract the centrafugal force and then to double to invert it
any help is apreciated
I found a fix by seperating the visuals and the physics and the visuals just rotate based on some quaternions seperate to the physics however it would still be good to know how to do this with physics