group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
DebugCollisionDraw.cpp File Reference

Implementation of the thread-local contact debug accumulator. More...

#include "ecs/physics/DebugCollisionDraw.hpp"
#include <atomic>
#include <mutex>
#include <vector>
Include dependency graph for DebugCollisionDraw.cpp:

Namespaces

namespace  physics
 Pure physics math — no ECS types, no registry.
namespace  physics::debug

Functions

void physics::debug::pushContact (const Contact &c) noexcept
 Push a contact event.
void physics::debug::pushSweepContact (glm::vec3 point, glm::vec3 normal, ContactSource source, uint32_t primitiveIndex=0) noexcept
 Convenience overload for non-depenetration (sweep) contacts.
void physics::debug::pushDepenContact (glm::vec3 point, glm::vec3 normal, float depth, ContactSource source, uint32_t primitiveIndex=0) noexcept
 Convenience overload for depenetration contacts (with depth).
void physics::debug::setEnabled (bool on) noexcept
 Enable / disable recording.
bool physics::debug::isEnabled () noexcept
 Query the recording flag. Internal fast-path predicate.
void physics::debug::beginFrame () noexcept
 Drain all thread-local buffers into the front buffer and clear them.
std::span< const Contactphysics::debug::contacts () noexcept
 Snapshot of all contacts pushed since the last beginFrame().

Detailed Description

Implementation of the thread-local contact debug accumulator.