Package pybox2d :: Module Box2D :: Class b2ContactFilter
[hide private]
[frames] | no frames]

type b2ContactFilter

source code


Implement this class to provide collision filtering. In other words, you can implement this class if you want finer control over contact creation.

Instance Methods [hide private]
 
__swig_destroy__(...)
delete_b2ContactFilter(b2ContactFilter self)
 
__repr__(self) source code
 
__getstate__(self, additional_ignore=[])
Returns a dictionary representation of self, with dict(var=value [, ...])
source code
 
__setstate__(self, dict)
Takes each variable=value pair in the dictionary and sets the attributes based on them
source code
b2ContactFilter
__init__(self) source code
 
__disown__(self) source code
 
ShouldCollide(...)
b2ContactFilter_ShouldCollide(b2ContactFilter self, b2Shape shape1, b2Shape shape2) -> bool
source code
 
RayCollide(...)
b2ContactFilter_RayCollide(b2ContactFilter self, void $ignore, b2Shape b2Shape) -> bool
source code
Properties [hide private]
  thisown
The membership flag
Method Details [hide private]

__repr__(self)
(Representation operator)

source code 
Overrides: object.__repr__
(inherited documentation)

__getstate__(self, additional_ignore=[])

source code 

Returns a dictionary representation of self, with 
 dict(var=value [, ...])

additional_ignore can be specified to ignore certain
properties. 

__init__(self)
(Constructor)

source code 
Returns: b2ContactFilter
Overrides: object.__init__

ShouldCollide(...)

source code 

b2ContactFilter_ShouldCollide(b2ContactFilter self, b2Shape shape1, b2Shape shape2) -> bool

Return true if contact calculations should be performed between these two shapes. WARNING: for performance reasons this is only called when the AABBs begin to overlap.

RayCollide(...)

source code 

b2ContactFilter_RayCollide(b2ContactFilter self, void $ignore, b2Shape b2Shape) -> bool

Return true if the given shape should be considered for ray intersection.


Property Details [hide private]

thisown

The membership flag