MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / cull

Method cull

deps/physx/physx/samples/samplebase/SampleCamera.cpp:439–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

437 }
438
439PlaneAABBCode Camera::cull(const PxBounds3& aabb) const
440{
441 const PxU32 nbFrustumPlanes = 6; // PT: can sometimes be 5 with infinite far clip plane
442 const PxU32 frustumPlanesMask = (1<<nbFrustumPlanes)-1;
443
444 PxU32 outClipMask;
445 if(!planesAABBOverlap(aabb, mPlanes, outClipMask, frustumPlanesMask))
446 return PLANEAABB_EXCLUSION;
447
448 if(outClipMask)
449 return PLANEAABB_INTERSECT;
450
451 return PLANEAABB_INCLUSION;
452}
453
454void Camera::drawDebug(RenderPhysX3Debug* debug)
455{

Callers 2

updateMethod · 0.80
renderMethod · 0.80

Calls 1

planesAABBOverlapFunction · 0.85

Tested by

no test coverage detected