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

Method RenderDebugInfo

trinity/Particle/Tr2ParticleDirectForce.cpp:40–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40void Tr2ParticleDirectForce::RenderDebugInfo( ITr2DebugRenderer2& renderer, const Matrix& worldTransform, const CcpMath::AxisAlignedBox& aabb ) const
41{
42 auto p0 = TransformCoord( Vector3( 0, 0, 0 ), worldTransform );
43 auto p1 = TransformCoord( m_force, worldTransform );
44 auto len = Length( p0 - p1 );
45 renderer.DrawArrow( this, p0, p1, std::max( len * 0.1f, 0.1f ), 0.4f, 10, ITr2DebugRenderer2::Wireframe, 0xffaaaa00 );
46}

Callers

nothing calls this directly

Calls 3

LengthFunction · 0.85
DrawArrowMethod · 0.80
Vector3Class · 0.50

Tested by

no test coverage detected