|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
Declares a solid box a camera cannot see through. More...
#include <Occluder.hpp>
Public Member Functions | |
| Occluder ()=default | |
Public Attributes | |
| glm::vec3 | halfExtents {50.0f, 50.0f, 50.0f} |
| Half the box, in world units, from the entity's position. The default fills an unscaled builtin cube exactly. | |
| bool | enabled {true} |
| Disabled occluders hide nothing, which is what every scene without one gets: the test costs a comparison and no object is ever refused. | |
Declares a solid box a camera cannot see through.
AUTHORED, not taken from the geometry: bounds CONTAIN a mesh, and a box claiming more than the surface fills makes things vanish in front of the player. World units about the entity, turned by its rotation; scale is not read — what every other extent here does, and what the gizmo draws.
Definition at line 32 of file Occluder.hpp.
|
default |
| bool esengine::ecs::Occluder::enabled {true} |
Disabled occluders hide nothing, which is what every scene without one gets: the test costs a comparison and no object is ever refused.
Definition at line 41 of file Occluder.hpp.
Referenced by EMSCRIPTEN_BINDINGS().
| glm::vec3 esengine::ecs::Occluder::halfExtents {50.0f, 50.0f, 50.0f} |
Half the box, in world units, from the entity's position. The default fills an unscaled builtin cube exactly.
Definition at line 36 of file Occluder.hpp.
Referenced by EMSCRIPTEN_BINDINGS().