Bounding box tree velocity callback function. This function should return an estimate for the object's velocity.
Spatial indexes are data structures that are used to accelerate collision detection and spatial queries. Chipmunk provides a number of spatial index algorithms to pick from and they are programmed in a generic way so that you can use them for holding more than just cpShape structs.
Spatial index/object iterator callback function type.
Spatial query callback function type.
Spatial segment query callback function type.
Returns true if the spatial index contains the given object. Most spatial indexes use hashed storage, so you must provide a hash value too.
Get the number of objects in the spatial index.
Destroy a spatial index.
Iterate the objects in the spatial index. @c func will be called once for each object.
Destroy and free a spatial index.
Add an object to a spatial index. Most spatial indexes use hashed storage, so you must provide a hash value too.
Perform a rectangle query against the spatial index, calling @c func for each potential match.
Perform a full reindex of a spatial index.
Reindex a single object in the spatial index.
Simultaneously reindex and find all colliding objects. @c func will be called once for each potentially overlapping pair of objects found. If the spatial index was initialized with a static index, it will collide it's objects against that as well.
Remove an object from a spatial index. Most spatial indexes use hashed storage, so you must provide a hash value too.
Perform a segment query against the spatial index, calling @c func for each potential match.