Chipmunk2D Pro API Reference  7.0.1
 All Classes Functions Variables Typedefs Enumerations Enumerator Properties Groups Pages
Public Attributes | List of all members
cpShapeFilter Struct Reference

Fast collision filtering type that is used to determine if two objects collide before calling collision or query callbacks. More...

#include <cpShape.h>

Public Attributes

cpGroup group
 Two objects with the same non-zero group value do not collide. More...
 
cpBitmask categories
 A bitmask of user definable categories that this object belongs to. More...
 
cpBitmask mask
 A bitmask of user definable category types that this object object collides with. More...
 

Detailed Description

Fast collision filtering type that is used to determine if two objects collide before calling collision or query callbacks.

Member Data Documentation

cpBitmask cpShapeFilter::categories

A bitmask of user definable categories that this object belongs to.

The category/mask combinations of both objects in a collision must agree for a collision to occur.

cpGroup cpShapeFilter::group

Two objects with the same non-zero group value do not collide.

This is generally used to group objects in a composite object together to disable self collisions.

cpBitmask cpShapeFilter::mask

A bitmask of user definable category types that this object object collides with.

The category/mask combinations of both objects in a collision must agree for a collision to occur.


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