Car Physics
Posted: Tue Dec 09, 2008 7:29 pm
Just got the hang on the Vehicle / Wheel classes, they work great! I managed to create a car using 4 wheels working perfectly in all regards, I then hooked up the car into my projectile collision system and started to apply various hit effects but here I ran into trouble.
When I detect a hit against a wheel I will after some damage remove the wheel from the car, this will cause the car to behave like I would imagine in all aspects except when it comes to angular velocity. When the wheel is blown off the car under gravitational influences will push that corner of the car down into the ground causing frictional forces from the car chassi to apply, slowing the car down, increasing the dynamic friction value will indeed make the car go slower and slower when more wheels are blown off. However the car will not start to yaw when say 1 tire from the left side is blown off I want to car to start to pull to the left but the car will still head straight ahead, why is this? I have tried to increase the inverse inertia tensor around the Y axis to make the car spin around easier, and I have confirmed this works by shooting the car causing it to spin around Y more if I increase the values. I figured the physic system would give me this behaviour automatic but maybe I need to find a workaround?
When I detect a hit against a wheel I will after some damage remove the wheel from the car, this will cause the car to behave like I would imagine in all aspects except when it comes to angular velocity. When the wheel is blown off the car under gravitational influences will push that corner of the car down into the ground causing frictional forces from the car chassi to apply, slowing the car down, increasing the dynamic friction value will indeed make the car go slower and slower when more wheels are blown off. However the car will not start to yaw when say 1 tire from the left side is blown off I want to car to start to pull to the left but the car will still head straight ahead, why is this? I have tried to increase the inverse inertia tensor around the Y axis to make the car spin around easier, and I have confirmed this works by shooting the car causing it to spin around Y more if I increase the values. I figured the physic system would give me this behaviour automatic but maybe I need to find a workaround?