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

Imported geometry, used as it is, for a level to collide against. More...

#include <RigidBody3D.hpp>

Public Attributes

resource::MeshHandle mesh
 The geometry to collide against. Its triangles are used directly.
f32 friction {0.3f}
f32 restitution {0.0f}
u32 layer {0}
 Which collision layer the geometry is in (0..15).
bool enabled {true}

Detailed Description

Imported geometry, used as it is, for a level to collide against.

What a box or a capsule cannot say: a terrain, a staircase, a room. ALWAYS STATIC whatever the RigidBody3D says — a triangle soup has no inertia tensor, so there is nothing for a solver to push. Its triangles are also ONE-SIDED: reversed winding stops nothing.

Definition at line 168 of file RigidBody3D.hpp.

Member Data Documentation

◆ enabled

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

Definition at line 184 of file RigidBody3D.hpp.

Referenced by meshcollider3dApplyJS(), and meshcollider3dToJS().

◆ friction

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

Definition at line 174 of file RigidBody3D.hpp.

Referenced by meshcollider3dApplyJS(), and meshcollider3dToJS().

◆ layer

u32 esengine::ecs::MeshCollider3D::layer {0}

Which collision layer the geometry is in (0..15).

Definition at line 181 of file RigidBody3D.hpp.

Referenced by meshcollider3dApplyJS(), and meshcollider3dToJS().

◆ mesh

resource::MeshHandle esengine::ecs::MeshCollider3D::mesh

The geometry to collide against. Its triangles are used directly.

Definition at line 171 of file RigidBody3D.hpp.

Referenced by meshcollider3dApplyJS(), and meshcollider3dToJS().

◆ restitution

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

Definition at line 177 of file RigidBody3D.hpp.

Referenced by meshcollider3dApplyJS(), and meshcollider3dToJS().


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