A holder for contact filtering data. More...
#include <Filter.hpp>
Public Types | |
using | bits_type = std::uint16_t |
Bits type definition. | |
using | index_type = std::int16_t |
Index type definition. | |
Public Attributes | |
bits_type | categoryBits = 0x0001 |
The collision category bits. More... | |
bits_type | maskBits = 0xFFFF |
The collision mask bits. More... | |
index_type | groupIndex = 0 |
Group index. More... | |
Related Functions | |
(Note that these are not member functions.) | |
constexpr bool | operator== (const Filter lhs, const Filter rhs) noexcept |
Equality operator. | |
constexpr bool | operator!= (const Filter lhs, const Filter rhs) noexcept |
Inequality operator. | |
bool | ShouldCollide (const Filter filterA, const Filter filterB) noexcept |
Determines whether collision processing should be performed. | |
A holder for contact filtering data.
bits_type playrho::Filter::categoryBits = 0x0001 |
The collision category bits.
index_type playrho::Filter::groupIndex = 0 |
Group index.
Collision groups allow a certain group of objects to never collide (negative) or always collide (positive). Zero means no collision group. Non-zero group filtering always wins against the mask bits.
bits_type playrho::Filter::maskBits = 0xFFFF |
The collision mask bits.
This states the categories that this shape would accept for collision.