Ray casting method
| 1184 | |
| 1185 | // Ray casting method |
| 1186 | void CollisionDetectionSystem::raycast(RaycastCallback* raycastCallback, const Ray& ray, unsigned short raycastWithCategoryMaskBits) const { |
| 1187 | |
| 1188 | RP3D_PROFILE("CollisionDetectionSystem::raycast()", mProfiler); |
| 1189 | |
| 1190 | RaycastTest rayCastTest(raycastCallback); |
| 1191 | |
| 1192 | // Ask the broad-phase algorithm to call the testRaycastAgainstShape() |
| 1193 | // callback method for each collider hit by the ray in the broad-phase |
| 1194 | mBroadPhaseSystem.raycast(ray, rayCastTest, raycastWithCategoryMaskBits); |
| 1195 | } |
| 1196 | |
| 1197 | // Convert the potential contact into actual contacts |
| 1198 | void CollisionDetectionSystem::processPotentialContacts(NarrowPhaseInfoBatch& narrowPhaseInfoBatch, bool updateLastFrameInfo, |
nothing calls this directly
no outgoing calls
no test coverage detected