11#define EMSCRIPTEN_KEEPALIVE
14#include <box2d/box2d.h>
16#include <unordered_map>
103 if (b2World_IsValid(
worldId)) {
float g_massDataBuffer[2]
std::vector< float > g_shapeCastBuffer
std::vector< float > g_raycastBuffer
std::vector< float > g_overlapBuffer
b2JointId findValidJoint(uint32_t entityId)
static constexpr int MAX_RAYCAST_HITS
uint32_t entityFromBody(b2BodyId bodyId)
static constexpr int SHAPECAST_STRIDE
static constexpr int MAX_PHYSICS_STEPS_PER_FRAME
static constexpr int RAYCAST_STRIDE
static constexpr int MAX_OVERLAP_HITS
uint32_t entityFromShape(b2ShapeId shapeId)
void pushEntityBits(std::vector< float > &buf, uint32_t entityId)
b2BodyId findValidBody(uint32_t entityId)
std::vector< float > hitEventBuffer
std::unordered_map< uint32_t, std::vector< b2ShapeId > > entityToShapes
std::vector< float > posePrev
std::vector< float > dynamicTransformBuffer
std::vector< float > poseInterpolated
std::unordered_map< uint32_t, PausedMotion > pausedMotion
std::unordered_map< uint32_t, OneWayNormal > oneWayNormals
std::vector< float > collisionEnterBuffer
std::vector< float > poseCur
std::unordered_map< uint32_t, uint32_t > posePrevIndex
std::vector< float > sensorEnterBuffer
std::unordered_map< uint32_t, b2JointId > entityToJoint
std::unordered_map< uint32_t, b2BodyId > entityToBody
std::vector< float > collisionExitBuffer
std::vector< float > sensorExitBuffer
std::vector< uint32_t > dynamicBodyEntities