Set of functions regarding body filtering (i.e. body collision group and mask and body flags)
More...
Set of functions regarding body filtering (i.e. body collision group and mask and body flags)
◆ body_set_collision_group_and_mask()
◆ body_get_collision_group()
Gets the body collision group (a single value of COLLISION_GROUP_)
- Returns
- a pointer to the body collision group
- Note
- This mask indicates the group this body belongs. Please use a single group per body
◆ body_get_collision_mask()
Gets the body collision mask (a combination of COLLISION_GROUP_ values)
- Returns
- a pointer to the body collision mask
- Note
- This mask indicates the groups this body wants to collide with.
◆ body_get_flags()
Shortcut that returns a pointer to the body flags (a combination of BF_ enums)
- Returns
- a pointer to the body flags