Module broccoli::helper[][src]

Expand description

Helper functions to construct objects from closures that implement query traits.

Structs

QueryParClosure

Used to create an object that implements CollisionHandler and Splitter from closures.

Functions

default_rect_knearest

Create a handler that treats each object as its aabb rectangle shape.

default_rect_raycast

Create a handler that just casts directly to the axis aligned rectangle

knearest_from_closure

Construct an object that implements Knearest from closures. We pass the tree so that we can infer the type of T.

raycast_from_closure

Construct an object that implements RayCast from closures. We pass the tree so that we can infer the type of T.