diff options
author | chai <chaifix@163.com> | 2021-12-02 12:46:50 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-12-02 12:46:50 +0800 |
commit | b1d4e9866de19c70174553e543e81ef4473dee6c (patch) | |
tree | fa1518ce5e6580886d8f8b4d9772474cd6f67184 /Client/Source/Phy2DLite/Body.cpp | |
parent | 83fedef41f6dcea4dde010abb025b7ed647d0501 (diff) |
*number -> fixed
Diffstat (limited to 'Client/Source/Phy2DLite/Body.cpp')
-rw-r--r-- | Client/Source/Phy2DLite/Body.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Client/Source/Phy2DLite/Body.cpp b/Client/Source/Phy2DLite/Body.cpp index 993c3f8..7b1c3e3 100644 --- a/Client/Source/Phy2DLite/Body.cpp +++ b/Client/Source/Phy2DLite/Body.cpp @@ -20,7 +20,7 @@ Body::Body() invI = _0; } -void Body::Set(const Vec2& w, number m) +void Body::Set(const Vec2& w, fixed m) { position.Set(_0, _0); rotation = _0; @@ -35,9 +35,9 @@ void Body::Set(const Vec2& w, number m) if (mass < NUMBER_MAX) { - invMass = (number)_1 / mass; + invMass = (fixed)_1 / mass; I = mass * (width.x * width.x + width.y * width.y) / _12; - invI = (number)_1 / I; + invI = (fixed)_1 / I; } else { |