From b1d4e9866de19c70174553e543e81ef4473dee6c Mon Sep 17 00:00:00 2001 From: chai <chaifix@163.com> Date: Thu, 2 Dec 2021 12:46:50 +0800 Subject: *number -> fixed --- Client/Source/Phy2DLite/Body.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Client/Source/Phy2DLite/Body.cpp') 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 { -- cgit v1.1-26-g67d0