diff options
Diffstat (limited to 'Client/Source/Phy2DLite/Arbiter.h')
-rw-r--r-- | Client/Source/Phy2DLite/Arbiter.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Client/Source/Phy2DLite/Arbiter.h b/Client/Source/Phy2DLite/Arbiter.h index 167978f..1934c65 100644 --- a/Client/Source/Phy2DLite/Arbiter.h +++ b/Client/Source/Phy2DLite/Arbiter.h @@ -27,12 +27,12 @@ namespace Phy2D Vec2 position; Vec2 normal; Vec2 r1, r2; - number separation; - number Pn; // accumulated normal impulse - number Pt; // accumulated tangent impulse - number Pnb; // accumulated normal impulse for position bias - number massNormal, massTangent; - number bias; + fixed separation; + fixed Pn; // accumulated normal impulse + fixed Pt; // accumulated tangent impulse + fixed Pnb; // accumulated normal impulse for position bias + fixed massNormal, massTangent; + fixed bias; FeaturePair feature; }; @@ -62,7 +62,7 @@ namespace Phy2D void Update(Contact* contacts, int numContacts); - void PreStep(number inv_dt); + void PreStep(fixed inv_dt); void ApplyImpulse(); Contact contacts[MAX_POINTS]; @@ -72,7 +72,7 @@ namespace Phy2D Body* body2; // Combined friction - number friction; + fixed friction; }; // This is used by std::set |