|
__init__(self,
iterations=10,
elastic_iterations=10)
Create a new instace of the Space |
|
|
|
|
|
add(self,
*objs)
Add one or many shapes, bodies or joints to the space |
|
|
|
add_static(self,
*objs)
Add one or many static shapes to the space |
|
|
|
remove(self,
*objs)
Remove one or many shapes, bodies or joints from the space |
|
|
|
remove_static(self,
*os)
Remove one or many static shapes from the space |
|
|
|
resize_static_hash(self,
dim=100.0,
count=1000)
The spatial hashes used by Chipmunk's collision detection are fairly
size sensitive. |
|
|
|
resize_active_hash(self,
dim=100.0,
count=1000)
The spatial hashes used by Chipmunk's collision detection are fairly
size sensitive. |
|
|
|
rehash_static(self)
Rehashes the shapes in the static spatial hash. |
|
|
|
step(self,
dt)
Update the space for the given time step. |
|
|
|
add_collisionpair_func(self,
a,
b,
func,
data=None)
Register func to be called when a collision is found between
shapes with collision_type fields that match a and b. |
|
|
|
remove_collisionpair_func(self,
a,
b)
Remove the collision pair function between shapes with
collision_type which match a and b. |
|
|
|
|
|
point_query(self,
point,
func,
data=None)
Query the space for collisions between a point and its shapes
(both static and nonstatic shapes) |
|
|
|
static_point_query(self,
point,
func,
data=None)
Query the space for collisions between a point and the static
shapes in the space. |
|
|
|
nonstatic_point_query(self,
point,
func,
data=None)
Query the space for collisions between a point and the non static
shapes in the space |
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|