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

#include <PhysXWorld.hpp>

Public Attributes

physx::PxController * controller = nullptr
uint32_t entity = 0
uint32_t layer = 0
float verticalSpeed = 0.0f
 The vertical speed between moves; a controller does not fall on its own.
bool grounded = false
physx::PxVec3 groundNormal {0.0f, 1.0f, 0.0f}
float pushForce = 0.0f
float mass = 70.0f
std::vector< const physx::PxRigidActor * > touching
std::unique_ptr< Body > body

Detailed Description

Definition at line 67 of file PhysXWorld.hpp.

Member Data Documentation

◆ body

std::unique_ptr<Body> esengine::physics3d_physx::Character::body

Definition at line 79 of file PhysXWorld.hpp.

◆ controller

physx::PxController* esengine::physics3d_physx::Character::controller = nullptr

Definition at line 68 of file PhysXWorld.hpp.

Referenced by physics3d_moveCharacter(), and physics3d_raycastWith().

◆ entity

uint32_t esengine::physics3d_physx::Character::entity = 0

Definition at line 69 of file PhysXWorld.hpp.

Referenced by physics3d_raycastWith().

◆ grounded

bool esengine::physics3d_physx::Character::grounded = false

Definition at line 73 of file PhysXWorld.hpp.

Referenced by physics3d_moveCharacter().

◆ groundNormal

physx::PxVec3 esengine::physics3d_physx::Character::groundNormal {0.0f, 1.0f, 0.0f}

Definition at line 74 of file PhysXWorld.hpp.

◆ layer

uint32_t esengine::physics3d_physx::Character::layer = 0

Definition at line 70 of file PhysXWorld.hpp.

Referenced by physics3d_moveCharacter(), and physics3d_raycastWith().

◆ mass

float esengine::physics3d_physx::Character::mass = 70.0f

Definition at line 76 of file PhysXWorld.hpp.

◆ pushForce

float esengine::physics3d_physx::Character::pushForce = 0.0f

Definition at line 75 of file PhysXWorld.hpp.

◆ touching

std::vector<const physx::PxRigidActor*> esengine::physics3d_physx::Character::touching

The actors it touched after its last move, so a meeting is told once, not every move it lasts.

Definition at line 78 of file PhysXWorld.hpp.

◆ verticalSpeed

float esengine::physics3d_physx::Character::verticalSpeed = 0.0f

The vertical speed between moves; a controller does not fall on its own.

Definition at line 72 of file PhysXWorld.hpp.

Referenced by physics3d_moveCharacter().


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