vkmEngine 1.0.0
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
Vkm::Engine::NarrowphaseChunk Struct Reference

Everything one narrowphase chunk writes, so chunks on different threads share nothing. More...

#include <physics_internal.h>

Public Attributes

std::vector< TouchingPair > touching
 In pair order.
std::vector< ContactManifold > manifolds
 The touching pairs', end to end, same order.
std::vector< uint32_t > meshCandidates
 Scratch: the triangles a tree walk found.

Detailed Description

Everything one narrowphase chunk writes, so chunks on different threads share nothing.

Cleared, not rebuilt, so it stops allocating after its busiest tick. Merged in chunk then pair order, so the result matches one thread sweeping every pair.


The documentation for this struct was generated from the following file: