Hinge vehicle balance
Posted: Tue Mar 09, 2021 8:38 pm
Hello,
before my questions, let me spend a word of appreciation about this forum and the people that contribute to help with their answers.
I'm implementing vehicles based on btHinge2Contraint. Throttle is simulated by btHinge2Contraint::setTargetVelocity on the wheel free axis.
I'm finding quite challenging to balance the various attributes (mass, gravity, angular velocities) in order to have an enjoyable control of the vehicle:
1) hard to avoid wheelie effect when suddenly change throttle direction
2) lowered by a lot the mass center to increase stability while turning, but when the vehicle is rolling (for example due to an explosion) the visual effect is awful
3) hard to apply the correct friction to have enough grip and allow a bit of enjoyable drifting
I uploaded a couple of video to show the problem 1) which is the most annoying.
tank, six hinges links cylinder colliders:
https://youtu.be/TupH95_XmuY
car, four hinges links cylinder colliders:
https://youtu.be/whVY2H-4zfM
For 1) I'll try to apply the velocity progressively and I'm tempted to apply some corrective impulses based on the body orientation.
For 2) and 3) I would appreciate if you can share an approach to the problem. I'm actually just playing with the numerous parameters without an effective strategy.
Thank you
before my questions, let me spend a word of appreciation about this forum and the people that contribute to help with their answers.
I'm implementing vehicles based on btHinge2Contraint. Throttle is simulated by btHinge2Contraint::setTargetVelocity on the wheel free axis.
I'm finding quite challenging to balance the various attributes (mass, gravity, angular velocities) in order to have an enjoyable control of the vehicle:
1) hard to avoid wheelie effect when suddenly change throttle direction
2) lowered by a lot the mass center to increase stability while turning, but when the vehicle is rolling (for example due to an explosion) the visual effect is awful
3) hard to apply the correct friction to have enough grip and allow a bit of enjoyable drifting
I uploaded a couple of video to show the problem 1) which is the most annoying.
tank, six hinges links cylinder colliders:
https://youtu.be/TupH95_XmuY
car, four hinges links cylinder colliders:
https://youtu.be/whVY2H-4zfM
For 1) I'll try to apply the velocity progressively and I'm tempted to apply some corrective impulses based on the body orientation.
For 2) and 3) I would appreciate if you can share an approach to the problem. I'm actually just playing with the numerous parameters without an effective strategy.
Thank you