Hey, I am trying to make bus controls through the latest big buggy example but having an issue in moving the bus. When the bus stops, a random amount of reverse force is applied on bus by which bus tilts upside down.
It will be great if somebody helps me in finding the issue.
@saif, just tried the project, this is odd. Now if I try even going forward, then the bus jumps back after a very little distance. Could you post the relevant bit of driving code here? That would really help as this is still a decently large project. I’ve done several projects with the vehicle physics demo, but never faced this . Hopefully with the code I can help you out with this.
hey @DevilZ, The code is the same as of big buggy i.e. The link I provided above. The only problem I am having is in adjusting the settings of the vehicle physics.
Just forked it, reducing the engine and braking forces seems to reduce the pitching forward and backward. I’m trying something in my fork, will revert soon.
@saif the problem is occurring due to your placement of the compound rigidbody collision shapes. If you select them, you’ll see that they are not really concurrent to the bus’s position. Change those, and reduce the forces and you’ll be fine.
Glad to hear it’s worked @saif! My guess was that the pitching was due to a high center of mass. While buses will pitch a little under braking, lowering a bit will always help .