From 8db0ba7b2c82da8972b5b5acf07c334157efcedd Mon Sep 17 00:00:00 2001 From: Rod Kay Date: Wed, 20 Dec 2023 18:01:04 +1100 Subject: [PATCH] bullet.space: Add debug info for b3d_Space_cast_Ray. --- 3-mid/physics/implement/bullet/source/c/bullet-space.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/3-mid/physics/implement/bullet/source/c/bullet-space.cpp b/3-mid/physics/implement/bullet/source/c/bullet-space.cpp index a82ee40..95e9539 100644 --- a/3-mid/physics/implement/bullet/source/c/bullet-space.cpp +++ b/3-mid/physics/implement/bullet/source/c/bullet-space.cpp @@ -127,6 +127,8 @@ b3d_Space_cast_Ray (Space* Self, Vector_3* From, btVector3 rayTo = to_btVector3 (To); btCollisionWorld::ClosestRayResultCallback rayCallback (rayFrom, rayTo); + // printf ("bullet-space ~ object count: %d\n", Self->dynamicsWorld->getNumCollisionObjects()); + Self->dynamicsWorld->rayTest (rayFrom, rayTo, rayCallback);