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

Method GetBoundingSphere

trinity/Eve/SpaceObject/Children/EveChildLink.cpp:171–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171bool EveChildLink::GetBoundingSphere( Vector4& sphere, BoundingSphereQuery query ) const
172{
173 // place the sphere in the center of the link
174 sphere = Vector4( m_currentDirection, 1.0 ) * m_currentDistance / 2.0f;
175
176 BoundingSphereTransform( m_worldTransform, sphere );
177 return true;
178}
179
180bool EveChildLink::IsCastingShadow( const TriFrustum& cameraFrustum, const IEveShadowFrustum& shadowFrustum, Tr2RenderReason renderReason, float& sizeInShadow ) const
181{

Callers

nothing calls this directly

Calls 2

BoundingSphereTransformFunction · 0.85
Vector4Class · 0.50

Tested by

no test coverage detected