| 1667 | } |
| 1668 | |
| 1669 | void Tr2ParticleSystem::RenderDebugInfo( ITr2DebugRenderer2& renderer, const Matrix& worldTransform ) const |
| 1670 | { |
| 1671 | if( !renderer.HasOption( this, "Particle Systems" ) ) |
| 1672 | { |
| 1673 | return; |
| 1674 | } |
| 1675 | auto aabb = CcpMath::AxisAlignedBox( m_AabbMin, m_AabbMax ); |
| 1676 | for( auto& force : m_forces ) |
| 1677 | { |
| 1678 | force->RenderDebugInfo( renderer, worldTransform, aabb ); |
| 1679 | } |
| 1680 | for( auto& force : m_constraints ) |
| 1681 | { |
| 1682 | force->RenderDebugInfo( renderer, worldTransform, aabb ); |
| 1683 | } |
| 1684 | } |