|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
Classes | |
| struct | Body |
| What the module knows about a body beyond what PhysX holds. More... | |
| struct | Character |
| struct | Joint |
| struct | World |
Enumerations | |
| enum | FilterWord : uint32_t { kLayerWord = 0 , kKindWord = 1 } |
| enum class | JointKind : uint8_t { Point , Hinge , Slider , Distance , Fixed , SwingTwist , SixDOF } |
Functions | |
| World & | world () |
| PxPhysics & | physics () |
| PxMaterial * | defaultMaterial () |
| Friction 0.6, no bounce: the default physics material. | |
| uint32_t | entityOf (const physx::PxActor *actor) |
| The entity an actor speaks for, or 0. | |
Variables | |
| constexpr uint32_t | LAYER_COUNT = 16 |
| Sixteen layers, the same number the Jolt backend and the 2D world name. | |
| constexpr uint32_t | KIND_CHARACTER = 1u |
| kKindWord bits. | |
| enum esengine::physics3d_physx::FilterWord : uint32_t |
Filter data words. word0 holds the layer INDEX rather than its bit, so the shader reads the live matrix, the same matrix Jolt consults per pair.
| Enumerator | |
|---|---|
| kLayerWord | |
| kKindWord | |
Definition at line 45 of file PhysXWorld.hpp.
|
strong |
Which PxJoint an entity's component made, so a motor or a reading knows what it is holding without RTTI.
| Enumerator | |
|---|---|
| Point | |
| Hinge | |
| Slider | |
| Distance | |
| Fixed | |
| SwingTwist | |
| SixDOF | |
Definition at line 84 of file PhysXWorld.hpp.
| physx::PxMaterial * esengine::physics3d_physx::defaultMaterial | ( | ) |
Friction 0.6, no bounce: the default physics material.
Definition at line 338 of file PhysXModuleEntry.cpp.
Referenced by physics3d_addCharacter().
|
inline |
The entity an actor speaks for, or 0.
Definition at line 143 of file PhysXWorld.hpp.
Referenced by physics3d_raycastWith(), and physics3d_sphereCast().
| physx::PxPhysics & esengine::physics3d_physx::physics | ( | ) |
Definition at line 337 of file PhysXModuleEntry.cpp.
Referenced by physics3d_addDistanceJoint(), physics3d_addFixedJoint(), physics3d_addHingeJoint(), and physics3d_addPointJoint().
| World & esengine::physics3d_physx::world | ( | ) |
Definition at line 336 of file PhysXModuleEntry.cpp.
|
constexpr |
kKindWord bits.
Definition at line 47 of file PhysXWorld.hpp.
Referenced by physics3d_addCharacter().
|
constexpr |
Sixteen layers, the same number the Jolt backend and the 2D world name.
Definition at line 41 of file PhysXWorld.hpp.
Referenced by esengine::physics3d_physx::World::collide(), and physics3d_setLayerMask().