Query

:= []

Builds the Queries that your game returns in Scene.queries. The owner is the draw id that a Query belongs to. The host skips the owner's own Collider. Read the results in the next step with QueryResults.

contacts_of : U64 -> Query

Asks for each Contact that involves the owner's Collider.

ray : U64, Vec3, Vec3, F32 -> Query

Asks for the nearest Collider along dir within max_distance, in slot 0.

ray_slot : U64, U32, Vec3, Vec3, F32 -> Query

The same as ray, in a slot that you choose. Use a different slot for each Raycast of one owner.

overlap : U64, [Box(Vec3), Sphere(F32)], Vec3 -> Query

Asks for each Collider that the shape at pos touches, in slot 0. A box carries its half extents and does not turn.

overlap_slot : U64, U32, [Box(Vec3), Sphere(F32)], Vec3 -> Query

The same as overlap, in a slot that you choose. Use a different slot for each Overlap of one owner.