Advice on reducing floaty-ness of physics?
Posted: Sat Jan 18, 2014 11:53 am
Hey,
So we are using the vehicle class and everything is working nicely but we have tweaked all the numbers quite considerably (and in some cases quite ridiculously).
Are there any tips on creating 'good' 'solid' physics? for example, our gravity is -9.81 * 10 !, in order to get the vehicles to fall to the ground at a 'nice' looking rate.. this in turn means the vehicle has a mass of ~1200, and the suspension strength something like 24000..
My concern is that although this approach 'works' it may be causing issues with some of the internal physics - for example, collisions become extremely eratic in some cases.
Although I have implemented the physics config class and played with setting a scale this doesnt appear to have such a huge impact.
Are there any tips for setting up vehicles? Is it a scale problem? (Too small car, too big car? the wheel spans currently measure about 14 units wide and 20 units long) - Wheel diameters between 4 and 6 units (these all seem pretty sensible numbers?)
Cheers
PS - is adding some colidables around the wheels (like a sphere) a good solution to stop wheel colliders dropping into the floor or into other vehicle bodies? (this causes some really bad glitches at the moment with just the wheel colliders)
So we are using the vehicle class and everything is working nicely but we have tweaked all the numbers quite considerably (and in some cases quite ridiculously).
Are there any tips on creating 'good' 'solid' physics? for example, our gravity is -9.81 * 10 !, in order to get the vehicles to fall to the ground at a 'nice' looking rate.. this in turn means the vehicle has a mass of ~1200, and the suspension strength something like 24000..
My concern is that although this approach 'works' it may be causing issues with some of the internal physics - for example, collisions become extremely eratic in some cases.
Although I have implemented the physics config class and played with setting a scale this doesnt appear to have such a huge impact.
Are there any tips for setting up vehicles? Is it a scale problem? (Too small car, too big car? the wheel spans currently measure about 14 units wide and 20 units long) - Wheel diameters between 4 and 6 units (these all seem pretty sensible numbers?)
Cheers
PS - is adding some colidables around the wheels (like a sphere) a good solution to stop wheel colliders dropping into the floor or into other vehicle bodies? (this causes some really bad glitches at the moment with just the wheel colliders)