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

Method castRayBase

Engine/source/forest/forestCollision.cpp:324–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322}
323
324bool Forest::castRayBase( const Point3F &start, const Point3F &end, RayInfo *outInfo, bool rendered )
325{
326 if ( !getObjBox().collideLine( start, end ) )
327 return false;
328
329 if ( mData->castRay( start, end, outInfo, rendered ) )
330 {
331 outInfo->object = this;
332 return true;
333 }
334
335 return false;
336}
337
338void Forest::updateCollision()
339{

Callers

nothing calls this directly

Calls 2

collideLineMethod · 0.80
castRayMethod · 0.45

Tested by

no test coverage detected