-------------------------------------------------------------------------------- Description: Return the matrix used to render the debug boudning box if the projection --------------------------------------------------------------------------------
| 51 | // Return the matrix used to render the debug boudning box if the projection |
| 52 | // -------------------------------------------------------------------------------- |
| 53 | void 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: |