From 1308cb4e2db1eb117b53372bc4fe964cf2d96813 Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 1 Dec 2021 13:52:38 +0800 Subject: =?UTF-8?q?*fpm=E5=A2=9E=E5=8A=A0=E4=B8=80=E4=BA=9Bfloat=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E7=9A=84=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Client/Source/Phy2DLite/Tests/test_p2d.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Client/Source/Phy2DLite/Tests/test_p2d.cpp') diff --git a/Client/Source/Phy2DLite/Tests/test_p2d.cpp b/Client/Source/Phy2DLite/Tests/test_p2d.cpp index a668301..69737f6 100644 --- a/Client/Source/Phy2DLite/Tests/test_p2d.cpp +++ b/Client/Source/Phy2DLite/Tests/test_p2d.cpp @@ -292,7 +292,7 @@ static void Demo7(Body* b, Joint* j) float dampingRatio = 0.7f; // frequency in radians - float omega = (number)2.0f * fix16_pi * frequencyHz; + float omega = (number)2.0f * PI * frequencyHz; // damping coefficient float d = 2.0f * mass * dampingRatio * omega; @@ -418,7 +418,7 @@ static void Demo9(Body* b, Joint* j) float dampingRatio = 0.7f; // frequency in radians - float omega = (number) 2.0f * fix16_pi * frequencyHz; + float omega = (number) 2.0f * PI * frequencyHz; // damping coefficient float d = 2.0f * mass * dampingRatio * omega; -- cgit v1.1-26-g67d0