aboutsummaryrefslogtreecommitdiff
path: root/Client/Source/Phy2DLite/Arbiter.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-12-02 12:46:50 +0800
committerchai <chaifix@163.com>2021-12-02 12:46:50 +0800
commitb1d4e9866de19c70174553e543e81ef4473dee6c (patch)
treefa1518ce5e6580886d8f8b4d9772474cd6f67184 /Client/Source/Phy2DLite/Arbiter.h
parent83fedef41f6dcea4dde010abb025b7ed647d0501 (diff)
*number -> fixed
Diffstat (limited to 'Client/Source/Phy2DLite/Arbiter.h')
-rw-r--r--Client/Source/Phy2DLite/Arbiter.h16
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