Nudge Physics
A single file, header-only 3D physics library
Loading...
Searching...
No Matches
nudge::BodyFilter Struct Reference

The BodyFilter struct. More...

#include <nudge.h>

Public Attributes

FlagMask flags
 
CollisionMask collision_group
 
CollisionMask collision_mask
 

Detailed Description

The BodyFilter struct.

Member Data Documentation

◆ flags

FlagMask nudge::BodyFilter::flags

a bit masks of BF_ enums; most values are read-only, so don't (re)set it, but just add/remove tweakable flags to it

◆ collision_group

CollisionMask nudge::BodyFilter::collision_group

a SINGLE COLLISION_GROUP_ value. Default value: COLLISION_GROUP_DEFAULT (means that the body belongs to this group. Better not use more than one group per body)

◆ collision_mask

CollisionMask nudge::BodyFilter::collision_mask

a bit mask of COLLISION_GROUP_ values. Default value: COLLISION_GROUP_ALL (means that the body can collide with all the groups)


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