|
R-Type 0.1
|
Draws collider outlines while the debug overlay is enabled. More...
#include <systems/DebugCollisionSystem.hpp>
Public Member Functions | |
| DebugCollisionSystem (const rtk::collision::CollisionBuffer &collisionBuffer, rtk::RenderWindow &window, const rtk::InputState &inputState) | |
| Creates the system. | |
| void | onStart (rtk::ecs::Registry &) override |
| Creates the 1x1 white texture used to draw outlines. | |
| void | update (rtk::ecs::Registry ®istry, float) override |
| Updates one outline entity per collider edge. | |
| void | onStop (rtk::ecs::Registry ®istry) override |
| Destroys the outline entities. | |
Draws collider outlines while the debug overlay is enabled.
Outlines of colliding entities are red, the others are green.
|
inlineexplicit |
Creates the system.
| collisionBuffer | Collisions of the current frame. |
| window | Window used to create the outline texture. |
| inputState | Input state holding the debug toggle. |
|
inlineoverride |
Updates one outline entity per collider edge.
| registry | Registry holding the colliders. |
|
inlineoverride |
Destroys the outline entities.
| registry | Registry holding the outlines. |