|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
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} |
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.
| bool esengine::ecs::MeshCollider3D::enabled {true} |
Definition at line 184 of file RigidBody3D.hpp.
Referenced by meshcollider3dApplyJS(), and meshcollider3dToJS().
| f32 esengine::ecs::MeshCollider3D::friction {0.3f} |
Definition at line 174 of file RigidBody3D.hpp.
Referenced by meshcollider3dApplyJS(), and meshcollider3dToJS().
| 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().
| 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().
| f32 esengine::ecs::MeshCollider3D::restitution {0.0f} |
Definition at line 177 of file RigidBody3D.hpp.
Referenced by meshcollider3dApplyJS(), and meshcollider3dToJS().