Custom Vehicle involuntarily flips at play start
So I've been trying to adapt the Sedan from the vehicle template to fit a custom vehicle that I've made (wheelchair). Obviously there are some differences between the 4-wheeled Sedan in the example and a wheelchair, but I've managed to get the wheels turning as they would with the normal sedan.
The issue is, as soon as I start the game, the wheels on the wheelchair appear (when pausing and playing the editor quickly to catch a glimpse of what's going on) to be dipping through the ground, then the wheelchair ends up on its back, below is a series of images displaying this:
I was initially having issues with my physics asset (which I suspect might be the root of these troubles) but in the physics asset editor, the asset simulates perfectly with the correct behavior as shown below:
So I'm really not sure what's going on. I'm pretty sure that as soon as the chair is sitting upright, it'll be able to drive. It might need a bit more tweaking but this flipping issue is really blocking me. The model was exported from Maya, but I don't think that is the source of the issue as the model appear correctly in most places. Please help me. Thanks
EDIT: I think this issue actually lies in the "wheel setup" of the wheeled vehicle movement class. When I removed the back wheels, I was able to have the chair sit up straight. I think it has something to do with the wheel's cylinder radius size but I'm not sure. The front wheels are still dipping into the ground though, so I'm not sure what the issue is there.
Follow this question
Once you sign in you will be able to subscribe for any updates here