SuperDex Physics C++ API
Loading...
Searching...
No Matches
superdex::prefab::LayerContactEntry Struct Reference

Used by ContactFilter to enable or disable contact for a pair of layers. More...

#include <mochi_prefab.h>

Public Member Functions

bool operator== (LayerContactEntry const &) const =default

Public Attributes

bool enable = true
 Enable (true) or disable (false) contact for the specified pair of contact layer names.
DynamicArray< DynamicStringlayers
 Identifies two contact layer names.

Detailed Description

Used by ContactFilter to enable or disable contact for a pair of layers.

See also
Scene::EnableLayerContactAsymmetric, Scene::EnableLayerContactSymmetric

Definition at line 55 of file mochi_prefab.h.

Member Function Documentation

◆ operator==()

bool superdex::prefab::LayerContactEntry::operator== ( LayerContactEntry const & ) const
default

Member Data Documentation

◆ enable

bool superdex::prefab::LayerContactEntry::enable = true

Enable (true) or disable (false) contact for the specified pair of contact layer names.

Note
Contact is enabled for any pair of layers by default. Therefore, you should usually only list pairs of layers for which contact should be explicitly disabled.
See also
ContactFilter

Definition at line 56 of file mochi_prefab.h.

◆ layers

DynamicArray<DynamicString> superdex::prefab::LayerContactEntry::layers

Identifies two contact layer names.

Note
Order matters when contact settings are applied asymmetrically. In that case, the first layer is the "colliding" layer and the second layer is the "collider". When contact is enabled, the contact sample points on an actor in the first layer will be tested against the collider geometry of an actor in the second layer.
Both layer names can be the same. In that case, the setting applies between actors within the same layer.
Warning
Must contain exactly 2 elements.

Definition at line 57 of file mochi_prefab.h.


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