pycollision.collision¶
This module defines all 3d collision routines
-
class
pycollision.collision.Collision¶ The collision object, provides only the member has_collisions.
-
has_collisions(obj, **kwargs)¶ calls the external collision functions
- Parameters
obj – the object to test for collision
kwargs – additional named parameters which were redirected to the collision functions
- Raises
ValueError – will be raised if obj doesn’t fit to any collision functions
-
-
class
pycollision.collision.CollisionResult¶ The CollisionResult object which provides the results of the collision test. It works like a normal Python dictionary. The only item which is always available is ‘collision’. All additional data are different for different collision types.
-
_collision¶ hold the collision result
- Type
bool
-
_data¶ additional information
- Type
dict
-
items()¶ - Returns
the complete data of the result dictionary
- Return type
dict
-