|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
The one 3D world a frame steps, and the layer scheme Jolt asks for. More...
#include <Jolt/Jolt.h>#include <Jolt/Core/Factory.h>#include <Jolt/Core/JobSystemSingleThreaded.h>#include <Jolt/Core/TempAllocator.h>#include <Jolt/Physics/PhysicsSystem.h>#include <Jolt/Physics/Constraints/TwoBodyConstraint.h>#include <Jolt/Physics/Character/CharacterVirtual.h>#include <cstdint>#include <memory>#include <unordered_map>#include <unordered_set>#include <vector>

Go to the source code of this file.
Classes | |
| struct | esengine::physics3d::LayerMatrix |
| class | esengine::physics3d::ObjectLayerPairFilterImpl |
| class | esengine::physics3d::BroadPhaseLayerInterfaceImpl |
| class | esengine::physics3d::ObjectVsBroadPhaseLayerFilterImpl |
| struct | esengine::physics3d::Context |
| Everything one world owns. Built by physics3d_init, torn down by shutdown. More... | |
Namespaces | |
| namespace | esengine |
| namespace | esengine::physics3d |
| namespace | esengine::physics3d::Layers |
| namespace | esengine::physics3d::BroadPhase |
Macros | |
| #define | EMSCRIPTEN_KEEPALIVE |
Functions | |
| static constexpr JPH::ObjectLayer | esengine::physics3d::Layers::of (JPH::uint layer, bool moving) |
| static constexpr JPH::uint | esengine::physics3d::Layers::indexOf (JPH::ObjectLayer layer) |
| static constexpr bool | esengine::physics3d::Layers::isMoving (JPH::ObjectLayer layer) |
| static constexpr JPH::BroadPhaseLayer | esengine::physics3d::BroadPhase::STATIC (0) |
| static constexpr JPH::BroadPhaseLayer | esengine::physics3d::BroadPhase::MOVING (1) |
| static constexpr JPH::uint | esengine::physics3d::BroadPhase::COUNT (2) |
| LayerMatrix & | esengine::physics3d::layerMatrix () |
| Context & | esengine::physics3d::ctx () |
Variables | |
| static constexpr JPH::uint | esengine::physics3d::Layers::COUNT = 16 |
| static constexpr JPH::ObjectLayer | esengine::physics3d::Layers::OBJECT_LAYER_COUNT = COUNT * 2 |
The one 3D world a frame steps, and the layer scheme Jolt asks for.
A side module holds one world, the way the 2D one does: the SDK owns when it is built and stepped, and every entry point here reads this.
Jolt wants two classifications per body — an object layer (who collides with whom) and a broad-phase layer (how the tree is split). Both are the minimum a rigid-body world needs: static geometry that never tests against itself, and everything else.
Definition in file Physics3DContext.hpp.
| #define EMSCRIPTEN_KEEPALIVE |
Definition at line 39 of file Physics3DContext.hpp.