MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / raycastSingle

Method raycastSingle

physx/source/physxextensions/src/ExtSceneQueryExt.cpp:47–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47bool PxSceneQueryExt::raycastSingle(const PxScene& scene,
48 const PxVec3& origin, const PxVec3& unitDir, const PxReal distance,
49 PxSceneQueryFlags outputFlags, PxRaycastHit& hit,
50 const PxSceneQueryFilterData& filterData,
51 PxSceneQueryFilterCallback* filterCall, const PxSceneQueryCache* cache)
52{
53 PxRaycastBuffer buf;
54 PxQueryFilterData fd1 = filterData;
55 scene.raycast(origin, unitDir, distance, buf, outputFlags, fd1, filterCall, cache);
56 hit = buf.block;
57 return buf.hasBlock;
58}
59
60PxI32 PxSceneQueryExt::raycastMultiple( const PxScene& scene,
61 const PxVec3& origin, const PxVec3& unitDir, const PxReal distance,

Callers

nothing calls this directly

Calls 1

raycastMethod · 0.45

Tested by

no test coverage detected