MCPcopy Create free account
hub / github.com/carbonengine/trinity / CalculateBoundingBox

Method CalculateBoundingBox

trinity/Interior/Tr2InteriorPlaceable.cpp:485–490  ·  view source on GitHub ↗

-------------------------------------------------------------------------------- Description: Calculates actual bounds for the object using the placeable res and attached objects Arguments: minBounds - bounding box's minimum bounds maxBounds - bounding box's minimum bounds --------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

483// maxBounds - bounding box's minimum bounds
484// --------------------------------------------------------------------------------
485void Tr2InteriorPlaceable::CalculateBoundingBox( Vector3& minBounds, Vector3& maxBounds )
486{
487 Vector3 min, max;
488 GetLocalBoundingBox( min, max );
489 BoundingBoxUpdate( minBounds, maxBounds, min, max );
490}
491
492void Tr2InteriorPlaceable::RebuildVolume( void )
493{

Callers

nothing calls this directly

Calls 2

BoundingBoxUpdateFunction · 0.85
GetLocalBoundingBoxFunction · 0.50

Tested by

no test coverage detected