aboutsummaryrefslogtreecommitdiff
path: root/Client/Source/Phy2DLite/Body.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/Body.h
parent83fedef41f6dcea4dde010abb025b7ed647d0501 (diff)
*number -> fixed
Diffstat (limited to 'Client/Source/Phy2DLite/Body.h')
-rw-r--r--Client/Source/Phy2DLite/Body.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/Client/Source/Phy2DLite/Body.h b/Client/Source/Phy2DLite/Body.h
index 050c719..c3d746a 100644
--- a/Client/Source/Phy2DLite/Body.h
+++ b/Client/Source/Phy2DLite/Body.h
@@ -8,7 +8,7 @@ namespace Phy2D
struct Body
{
Body();
- void Set(const Vec2& w, number m);
+ void Set(const Vec2& w, fixed m);
void AddForce(const Vec2& f)
{
@@ -16,19 +16,19 @@ namespace Phy2D
}
Vec2 position;
- number rotation;
+ fixed rotation;
Vec2 velocity;
- number angularVelocity;
+ fixed angularVelocity;
Vec2 force;
- number torque;
+ fixed torque;
Vec2 width;
- number friction;
- number mass, invMass;
- number I, invI;
+ fixed friction;
+ fixed mass, invMass;
+ fixed I, invI;
};
} \ No newline at end of file