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

#include <Physics3DContext.hpp>

Public Member Functions

 LayerMatrix ()
bool collide (JPH::uint a, JPH::uint b) const

Public Attributes

JPH::uint32 masks [Layers::COUNT]

Detailed Description

Per-layer masks: bit i of masks[l] means layer l wants to hear from layer i. Both sides must agree, so one of them saying no is enough — the same rule the 2D world's category/mask pair follows.

Definition at line 67 of file Physics3DContext.hpp.

Constructor & Destructor Documentation

◆ LayerMatrix()

esengine::physics3d::LayerMatrix::LayerMatrix ( )
inline

Definition at line 69 of file Physics3DContext.hpp.

References masks.

Member Function Documentation

◆ collide()

bool esengine::physics3d::LayerMatrix::collide ( JPH::uint a,
JPH::uint b ) const
inline

Member Data Documentation

◆ masks

JPH::uint32 esengine::physics3d::LayerMatrix::masks[Layers::COUNT]

Definition at line 68 of file Physics3DContext.hpp.

Referenced by LayerMatrix(), collide(), and physics3d_setLayerMask().


The documentation for this struct was generated from the following file: