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