MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / raycast

Method raycast

src/systems/CollisionDetectionSystem.cpp:1186–1195  ·  view source on GitHub ↗

Ray casting method

Source from the content-addressed store, hash-verified

1184
1185// Ray casting method
1186void 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
1198void CollisionDetectionSystem::processPotentialContacts(NarrowPhaseInfoBatch& narrowPhaseInfoBatch, bool updateLastFrameInfo,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected