Unity3d
Hello, I'm trying to recreate functionality of outriggers stabilizing a firetruck before the ladder is raised up. How would I go about making the downward force of the outriggers lift the firetruck on that corner of the truck? Most 109ft firetrucks have 4 outriggers that extend out the sides of the truck. Basically Front-Left/Right and Rear-Left/Right.
I'm using wheel colliders and a rigidbody on the main firetruck object which works fine. I then have a child object called Outriggers which holds all 4 outrigger arms and the legs of each. The legs have their own rigidbody and collider. I have the outrigger leg movement working to hit the ground, But not really sure where to go from here.
I was thinking of somehow calculated the amount of leg force hitting the ground then just apply Vector3.up force to the truck, but then my question would be; How would I make sure it lifts only that corner.
Second thought would be changing in realtime the Rigidbody Center Mass to shift to the opposite sides or something. I don't know. Any help would be appreciated.