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

An axis-aligned box, sized in world units around the entity's origin. More...

#include <RigidBody3D.hpp>

Public Attributes

glm::vec3 halfExtents {50.0f, 50.0f, 50.0f}
glm::vec3 center {0.0f, 0.0f, 0.0f}
 Where the shape sits from the entity's origin, in world units; zero is centred on it.
f32 friction {0.3f}
f32 restitution {0.0f}
bool isSensor {false}
 A sensor reports overlaps and stops nothing.
bool enabled {true}

Detailed Description

An axis-aligned box, sized in world units around the entity's origin.

Definition at line 82 of file RigidBody3D.hpp.

Member Data Documentation

◆ center

glm::vec3 esengine::ecs::BoxCollider3D::center {0.0f, 0.0f, 0.0f}

Where the shape sits from the entity's origin, in world units; zero is centred on it.

Definition at line 89 of file RigidBody3D.hpp.

Referenced by EMSCRIPTEN_BINDINGS().

◆ enabled

bool esengine::ecs::BoxCollider3D::enabled {true}

Definition at line 102 of file RigidBody3D.hpp.

Referenced by EMSCRIPTEN_BINDINGS().

◆ friction

f32 esengine::ecs::BoxCollider3D::friction {0.3f}

Definition at line 92 of file RigidBody3D.hpp.

Referenced by EMSCRIPTEN_BINDINGS().

◆ halfExtents

glm::vec3 esengine::ecs::BoxCollider3D::halfExtents {50.0f, 50.0f, 50.0f}

Definition at line 85 of file RigidBody3D.hpp.

Referenced by EMSCRIPTEN_BINDINGS().

◆ isSensor

bool esengine::ecs::BoxCollider3D::isSensor {false}

A sensor reports overlaps and stops nothing.

Definition at line 99 of file RigidBody3D.hpp.

Referenced by EMSCRIPTEN_BINDINGS().

◆ restitution

f32 esengine::ecs::BoxCollider3D::restitution {0.0f}

Definition at line 95 of file RigidBody3D.hpp.

Referenced by EMSCRIPTEN_BINDINGS().


The documentation for this struct was generated from the following file:
  • /home/runner/work/estella/estella/src/esengine/ecs/components/RigidBody3D.hpp