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

The convex hull of imported geometry — a shape a solver can push. More...

#include <RigidBody3D.hpp>

Public Attributes

resource::MeshHandle mesh
 Geometry whose hull is the shape. Its concave detail is filled in.
f32 friction {0.3f}
f32 restitution {0.0f}
bool isSensor {false}
bool enabled {true}

Detailed Description

The convex hull of imported geometry — a shape a solver can push.

What MeshCollider3D cannot be: a triangle soup has no inertia tensor, so it can only ever be scenery. A hull is the tightest convex volume around the same vertices, which a rigid-body solver handles as easily as a box — a rock, a crate with a chamfer, a barrel that rolls.

Definition at line 196 of file RigidBody3D.hpp.

Member Data Documentation

◆ enabled

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

Definition at line 211 of file RigidBody3D.hpp.

Referenced by convexcollider3dApplyJS(), and convexcollider3dToJS().

◆ friction

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

Definition at line 202 of file RigidBody3D.hpp.

Referenced by convexcollider3dApplyJS(), and convexcollider3dToJS().

◆ isSensor

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

Definition at line 208 of file RigidBody3D.hpp.

Referenced by convexcollider3dApplyJS(), and convexcollider3dToJS().

◆ mesh

resource::MeshHandle esengine::ecs::ConvexCollider3D::mesh

Geometry whose hull is the shape. Its concave detail is filled in.

Definition at line 199 of file RigidBody3D.hpp.

Referenced by convexcollider3dApplyJS(), and convexcollider3dToJS().

◆ restitution

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

Definition at line 205 of file RigidBody3D.hpp.

Referenced by convexcollider3dApplyJS(), and convexcollider3dToJS().


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