| 38 | } |
| 39 | |
| 40 | void 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 | } |