MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / collisionCallback

Method collisionCallback

Engine/source/lighting/common/blobShadow.cpp:313–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311//--------------------------------------------------------------
312
313void BlobShadow::collisionCallback(SceneObject * obj, void* thisPtr)
314{
315 if (obj->getWorldBox().isOverlapped(gBlobShadowBox))
316 {
317 // only interiors clip...
318 ClippedPolyList::allowClipping = (obj->getTypeMask() & LIGHTMGR->getSceneLightingInterface()->mClippingMask) != 0;
319 obj->buildPolyList(PLC_Collision,&smDepthSortList,gBlobShadowBox,gBlobShadowSphere);
320 ClippedPolyList::allowClipping = true;
321 }
322}
323
324//--------------------------------------------------------------
325

Callers

nothing calls this directly

Calls 5

getTypeMaskMethod · 0.80
isOverlappedMethod · 0.60
getWorldBoxMethod · 0.45
buildPolyListMethod · 0.45

Tested by

no test coverage detected