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

#include <RigidBody3D.hpp>

Public Attributes

f32 radius {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}
bool enabled {true}

Detailed Description

Definition at line 106 of file RigidBody3D.hpp.

Member Data Documentation

◆ center

glm::vec3 esengine::ecs::SphereCollider3D::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 112 of file RigidBody3D.hpp.

Referenced by EMSCRIPTEN_BINDINGS().

◆ enabled

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

Definition at line 124 of file RigidBody3D.hpp.

Referenced by EMSCRIPTEN_BINDINGS().

◆ friction

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

Definition at line 115 of file RigidBody3D.hpp.

Referenced by EMSCRIPTEN_BINDINGS().

◆ isSensor

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

Definition at line 121 of file RigidBody3D.hpp.

Referenced by EMSCRIPTEN_BINDINGS().

◆ radius

f32 esengine::ecs::SphereCollider3D::radius {50.0f}

Definition at line 108 of file RigidBody3D.hpp.

Referenced by EMSCRIPTEN_BINDINGS().

◆ restitution

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

Definition at line 118 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