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

Method RenderDebugInfo

trinity/Eve/Volume/EveEllipsoidVolume.cpp:57–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57void EveEllipsoidVolume::RenderDebugInfo( ITr2DebugRenderer2& renderer, const Matrix& parentTransform, const Color& baseColor )
58{
59 Matrix outerTransform = TransformationMatrix( m_shape, m_rotation, m_position ) * parentTransform;
60 renderer.DrawSphere( Tr2DebugObjectReference( this, 200 ), outerTransform, 20, Tr2DebugRenderer::Wireframe, baseColor * 0.5f );
61
62 Matrix innerTransform = TransformationMatrix( m_innerShape, m_rotation, m_position ) * parentTransform;
63 renderer.DrawSphere( Tr2DebugObjectReference( this, 200 ), innerTransform, 20, Tr2DebugRenderer::Wireframe, baseColor * 0.6f );
64
65 if( m_debugShowIntersection )
66 {
67 renderer.DrawSphere( this, m_rotationMatrix * parentTransform, m_innerIntersection, 1, 15, Tr2DebugRenderer::Solid, 0xffff0000 );
68 renderer.DrawSphere( this, m_rotationMatrix * parentTransform, m_outerIntersection, 1, 15, Tr2DebugRenderer::Solid, 0xffffff00 );
69 }
70}
71
72const CcpMath::Sphere EveEllipsoidVolume::GetBoundingSphere() const
73{

Callers

nothing calls this directly

Calls 2

DrawSphereMethod · 0.45

Tested by

no test coverage detected