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

Method GetDebugDrawMatrix

trinity/Eve/SpaceObject/Utils/EveCustomMask.cpp:53–60  ·  view source on GitHub ↗

-------------------------------------------------------------------------------- Description: Return the matrix used to render the debug boudning box if the projection --------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

51// Return the matrix used to render the debug boudning box if the projection
52// --------------------------------------------------------------------------------
53void EveCustomMask::GetDebugDrawMatrix( Matrix* matrix, float objectRadius ) const
54{
55 // scaling includes size!
56 Vector3 finalScale( 0.1f * objectRadius, m_scaling.y * objectRadius, m_scaling.z * objectRadius );
57
58 // build matrix
59 *matrix = TransformationMatrix( finalScale, m_rotation, m_position );
60}
61
62// --------------------------------------------------------------------------------
63// Description:

Callers 1

RenderDebugInfoMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected