|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
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} |
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.
| bool esengine::ecs::ConvexCollider3D::enabled {true} |
Definition at line 211 of file RigidBody3D.hpp.
Referenced by convexcollider3dApplyJS(), and convexcollider3dToJS().
| f32 esengine::ecs::ConvexCollider3D::friction {0.3f} |
Definition at line 202 of file RigidBody3D.hpp.
Referenced by convexcollider3dApplyJS(), and convexcollider3dToJS().
| bool esengine::ecs::ConvexCollider3D::isSensor {false} |
Definition at line 208 of file RigidBody3D.hpp.
Referenced by convexcollider3dApplyJS(), and convexcollider3dToJS().
| 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().
| f32 esengine::ecs::ConvexCollider3D::restitution {0.0f} |
Definition at line 205 of file RigidBody3D.hpp.
Referenced by convexcollider3dApplyJS(), and convexcollider3dToJS().