|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
#include <PhysXWorld.hpp>
Public Member Functions | |
| World () | |
| bool | isValid () const |
| bool | collide (uint32_t a, uint32_t b) const |
| Body * | body (uint32_t id) |
Public Attributes | |
| physx::PxScene * | scene = nullptr |
| physx::PxDefaultCpuDispatcher * | dispatcher = nullptr |
| physx::PxControllerManager * | controllers = nullptr |
| uint32_t | masks [LAYER_COUNT] |
| std::unordered_map< uint32_t, std::unique_ptr< Body > > | bodies |
| uint32_t | nextBodyId = 1 |
| std::unordered_map< uint32_t, std::unique_ptr< Character > > | characters |
| uint32_t | nextCharacterId = 1 |
| std::unordered_map< uint32_t, Joint > | joints |
| std::unordered_map< uint64_t, physx::PxMaterial * > | materials |
| std::vector< float > | transformBuffer |
| std::vector< float > | queryBuffer |
| std::vector< float > | contactEnterBuffer |
| std::vector< float > | contactEnterSpeedBuffer |
| std::vector< float > | contactEnterMassBuffer |
| std::vector< float > | characterHitBuffer |
| bool | characterHitsStale = false |
| std::vector< float > | contactExitBuffer |
| std::vector< float > | sensorEnterBuffer |
| std::vector< float > | sensorExitBuffer |
Definition at line 93 of file PhysXWorld.hpp.
|
inline |
Definition at line 124 of file PhysXWorld.hpp.
References masks.
|
inline |
Definition at line 131 of file PhysXWorld.hpp.
References bodies.
|
inline |
Definition at line 127 of file PhysXWorld.hpp.
References esengine::physics3d_physx::LAYER_COUNT, and masks.
|
inline |
Definition at line 125 of file PhysXWorld.hpp.
References scene.
| std::unordered_map<uint32_t, std::unique_ptr<Body> > esengine::physics3d_physx::World::bodies |
Definition at line 99 of file PhysXWorld.hpp.
Referenced by body().
| std::vector<float> esengine::physics3d_physx::World::characterHitBuffer |
What characters ran into, ten floats a meeting; read after the step, emptied by the next step's first move.
Definition at line 118 of file PhysXWorld.hpp.
| bool esengine::physics3d_physx::World::characterHitsStale = false |
Definition at line 119 of file PhysXWorld.hpp.
| std::unordered_map<uint32_t, std::unique_ptr<Character> > esengine::physics3d_physx::World::characters |
Definition at line 102 of file PhysXWorld.hpp.
| std::vector<float> esengine::physics3d_physx::World::contactEnterBuffer |
Definition at line 112 of file PhysXWorld.hpp.
| std::vector<float> esengine::physics3d_physx::World::contactEnterMassBuffer |
One meeting mass, in kilograms, for each contact in contactEnterBuffer.
Definition at line 116 of file PhysXWorld.hpp.
| std::vector<float> esengine::physics3d_physx::World::contactEnterSpeedBuffer |
One closing speed for each contact in contactEnterBuffer.
Definition at line 114 of file PhysXWorld.hpp.
| std::vector<float> esengine::physics3d_physx::World::contactExitBuffer |
Definition at line 120 of file PhysXWorld.hpp.
| physx::PxControllerManager* esengine::physics3d_physx::World::controllers = nullptr |
Definition at line 96 of file PhysXWorld.hpp.
| physx::PxDefaultCpuDispatcher* esengine::physics3d_physx::World::dispatcher = nullptr |
Definition at line 95 of file PhysXWorld.hpp.
| std::unordered_map<uint32_t, Joint> esengine::physics3d_physx::World::joints |
Definition at line 105 of file PhysXWorld.hpp.
| uint32_t esengine::physics3d_physx::World::masks[LAYER_COUNT] |
Definition at line 98 of file PhysXWorld.hpp.
| std::unordered_map<uint64_t, physx::PxMaterial*> esengine::physics3d_physx::World::materials |
Materials keyed by (friction, restitution): a scene of a thousand crates shares one.
Definition at line 108 of file PhysXWorld.hpp.
| uint32_t esengine::physics3d_physx::World::nextBodyId = 1 |
Definition at line 100 of file PhysXWorld.hpp.
| uint32_t esengine::physics3d_physx::World::nextCharacterId = 1 |
Definition at line 103 of file PhysXWorld.hpp.
| std::vector<float> esengine::physics3d_physx::World::queryBuffer |
Definition at line 111 of file PhysXWorld.hpp.
| physx::PxScene* esengine::physics3d_physx::World::scene = nullptr |
Definition at line 94 of file PhysXWorld.hpp.
Referenced by isValid().
| std::vector<float> esengine::physics3d_physx::World::sensorEnterBuffer |
Definition at line 121 of file PhysXWorld.hpp.
| std::vector<float> esengine::physics3d_physx::World::sensorExitBuffer |
Definition at line 122 of file PhysXWorld.hpp.
| std::vector<float> esengine::physics3d_physx::World::transformBuffer |
Definition at line 110 of file PhysXWorld.hpp.