BulletSim: rewrite and improve vehicle angularDeflection, verticalAttraction,

linearMotorUp and related vehicle forces.
Fixed problems with downward vehicle position correction forces being too large.
Add vehicle collision flag so can sense whether vehicle is on the ground.
This commit is contained in:
Robert Adams
2012-12-06 09:24:24 -08:00
parent edd1b353a5
commit 7fd8202ae3
2 changed files with 130 additions and 83 deletions

View File

@@ -360,6 +360,7 @@ public enum CollisionFlags : uint
// Following used by BulletSim to control collisions and updates
BS_SUBSCRIBE_COLLISION_EVENTS = 1 << 10,
BS_FLOATS_ON_WATER = 1 << 11,
BS_VEHICLE_COLLISIONS = 1 << 12,
BS_NONE = 0,
BS_ALL = 0xFFFFFFFF,