Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
World Struct Reference

#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

Detailed Description

Definition at line 93 of file PhysXWorld.hpp.

Constructor & Destructor Documentation

◆ World()

Definition at line 124 of file PhysXWorld.hpp.

Member Function Documentation

◆ body()

Definition at line 131 of file PhysXWorld.hpp.

◆ collide()

bool esengine::physics3d_physx::World::collide ( uint32_t a,
uint32_t b ) const
inline

Definition at line 127 of file PhysXWorld.hpp.

◆ isValid()

Definition at line 125 of file PhysXWorld.hpp.

Member Data Documentation

◆ bodies

std::unordered_map<uint32_t, std::unique_ptr<Body> > esengine::physics3d_physx::World::bodies

Definition at line 99 of file PhysXWorld.hpp.

◆ 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.

◆ characterHitsStale

◆ characters

std::unordered_map<uint32_t, std::unique_ptr<Character> > esengine::physics3d_physx::World::characters

Definition at line 102 of file PhysXWorld.hpp.

◆ contactEnterBuffer

Definition at line 112 of file PhysXWorld.hpp.

◆ contactEnterMassBuffer

One meeting mass, in kilograms, for each contact in contactEnterBuffer.

Definition at line 116 of file PhysXWorld.hpp.

◆ contactEnterSpeedBuffer

One closing speed for each contact in contactEnterBuffer.

Definition at line 114 of file PhysXWorld.hpp.

◆ contactExitBuffer

Definition at line 120 of file PhysXWorld.hpp.

◆ controllers

Definition at line 96 of file PhysXWorld.hpp.

◆ dispatcher

physx::PxDefaultCpuDispatcher* esengine::physics3d_physx::World::dispatcher = nullptr

Definition at line 95 of file PhysXWorld.hpp.

◆ joints

std::unordered_map<uint32_t, Joint> esengine::physics3d_physx::World::joints

Definition at line 105 of file PhysXWorld.hpp.

◆ masks

Definition at line 98 of file PhysXWorld.hpp.

◆ materials

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.

◆ nextBodyId

Definition at line 100 of file PhysXWorld.hpp.

◆ nextCharacterId

Definition at line 103 of file PhysXWorld.hpp.

◆ queryBuffer

Definition at line 111 of file PhysXWorld.hpp.

◆ scene

Definition at line 94 of file PhysXWorld.hpp.

◆ sensorEnterBuffer

Definition at line 121 of file PhysXWorld.hpp.

◆ sensorExitBuffer

Definition at line 122 of file PhysXWorld.hpp.

◆ transformBuffer

Definition at line 110 of file PhysXWorld.hpp.


The documentation for this struct was generated from the following file:
  • /home/runner/work/estella/estella/src/esengine/bindings/modules/physics3d_physx/PhysXWorld.hpp