Expand description
Queries dedicated to specific pairs of shapes.
Re-exports§
pub use super::closest_points::*;
pub use super::contact::*;
pub use super::point::*;
Structs§
- Contact
Manifold - A contact manifold between two shapes.
- Contact
Manifolds Workspace - A serializable workspace used by some contact-manifolds computation algorithms.
- Nonlinear
Rigid Motion - A nonlinear motion from a starting isometry traveling at constant translational and rotational velocity.
- Ray
- A Ray.
- RayIntersection
- Structure containing the result of a successful ray cast.
- Shape
Cast Hit - The result of a shape casting..
- Shape
Cast Options - Configuration for controlling the behavior of time-of-impact (i.e. shape-casting) calculations.
- SimdRay
- A structure representing 4 rays in an SIMD SoA fashion.
- Tracked
Contact - A single contact between two shape.
- Voxels
Shape Contact Manifolds Workspace - A workspace for collision-detection against voxels shape.
Enums§
- Nonlinear
Shape Cast Mode - Enum specifying the behavior of shape-casting when there is a penetration at the starting time.
- RayCulling
Mode - Controls which side of a triangle a ray-cast is allowed to hit.
- Shape
Cast Status - The status of the time-of-impact computation algorithm.
- Typed
Workspace Data - Enum representing workspace data of a specific type.
Traits§
- Normal
Constraints - Constraints of contact normals, generally for internal edges resolution.
- Normal
Constraints Pair - A pair of
NormalConstraints
. - RayCast
- Traits of objects which can be transformed and tested for intersection with a ray.
- Workspace
Data - Data from a
ContactManifoldsWorkspace
.
Functions§
- cast_
shapes - Computes the smallest time when two shapes under translational movement are separated by a
distance smaller or equal to
distance
. - cast_
shapes_ ball_ ball - Time Of Impact of two balls under translational movement.
- cast_
shapes_ composite_ shape_ shape - Time Of Impact of a composite shape with any other shape, under translational movement.
- cast_
shapes_ halfspace_ support_ map - Time Of Impact of a halfspace with a support-mapped shape under translational movement.
- cast_
shapes_ heightfield_ shape - Time Of Impact between a moving shape and a heightfield.
- cast_
shapes_ nonlinear - Computes the smallest time of impact of two shapes under translational an rotational movements.
- cast_
shapes_ nonlinear_ composite_ shape_ shape - Time Of Impact of a composite shape with any other shape, under a rigid motion (translation + rotation).
- cast_
shapes_ nonlinear_ shape_ composite_ shape - Time Of Impact of any shape with a composite shape, under a rigid motion (translation + rotation).
- cast_
shapes_ nonlinear_ shape_ voxels - Time Of Impact of any shape with a composite shape, under a rigid motion (translation + rotation).
- cast_
shapes_ nonlinear_ support_ map_ support_ map - Compute the time of first impact between two support-map shapes following a nonlinear (with translations and rotations) motion.
- cast_
shapes_ nonlinear_ voxels_ shape - Time Of Impact of a voxels shape with any other shape, under a rigid motion (translation + rotation).
- cast_
shapes_ shape_ composite_ shape - Time Of Impact of any shape with a composite shape, under translational movement.
- cast_
shapes_ shape_ heightfield - Time Of Impact between a moving shape and a heightfield.
- cast_
shapes_ shape_ voxels - Time Of Impact of any shape with a composite shape, under a rigid motion (translation + rotation).
- cast_
shapes_ support_ map_ halfspace - Time Of Impact of a halfspace with a support-mapped shape under translational movement.
- cast_
shapes_ support_ map_ support_ map - Time of impacts between two support-mapped shapes under translational movement.
- cast_
shapes_ voxels_ shape - Time Of Impact of a voxels shape with any other shape, under a translational movement.
- clip_
aabb_ line - Computes the segment given by the intersection of a line and an Aabb.
- clip_
halfspace_ polygon - Cuts a polygon with the given half-space.
- clip_
segment_ segment - Projects two segments on one another and compute their intersection.
- contact_
manifold_ ball_ ball - Computes the contact manifold between two balls.
- contact_
manifold_ ball_ ball_ shapes - Computes the contact manifold between two balls given as
Shape
trait-objects. - contact_
manifold_ capsule_ capsule - Computes the contact manifold between two capsules.
- contact_
manifold_ capsule_ capsule_ shapes - Computes the contact manifold between two capsules given as
Shape
trait-objects. - contact_
manifold_ convex_ ball - Computes the contact manifold between a convex shape and a ball.
- contact_
manifold_ convex_ ball_ shapes - Computes the contact manifold between a convex shape and a ball, both represented as a
Shape
trait-object. - contact_
manifold_ cuboid_ cuboid - Computes the contact manifold between two cuboids.
- contact_
manifold_ cuboid_ cuboid_ shapes - Computes the contact manifold between two cuboids represented as
Shape
trait-objects. - contact_
manifold_ cuboid_ triangle - Computes the contact manifold between a cuboid and a triangle.
- contact_
manifold_ cuboid_ triangle_ shapes - Computes the contact manifold between a cuboid and a triangle represented as
Shape
trait-objects. - contact_
manifold_ halfspace_ pfm - Computes the contact manifold between a convex shape and a ball.
- contact_
manifold_ halfspace_ pfm_ shapes - Computes the contact manifold between a convex shape and a ball, both represented as a
Shape
trait-object. - contact_
manifold_ pfm_ pfm - Computes the contact manifold between two convex shapes implementing the
PolygonalSupportMap
trait. - contact_
manifold_ pfm_ pfm_ shapes - Computes the contact manifold between two convex shapes implementing the
PolygonalSupportMap
trait, both represented asShape
trait-objects. - contact_
manifolds_ composite_ shape_ composite_ shape - Computes the contact manifolds between two composite shapes.
- contact_
manifolds_ composite_ shape_ shape - Computes the contact manifolds between a composite shape and an abstract shape.
- contact_
manifolds_ heightfield_ composite_ shape - Computes the contact manifold between an heightfield and a composite shape.
- contact_
manifolds_ heightfield_ shape - Computes the contact manifold between an heightfield and an abstract shape.
- contact_
manifolds_ heightfield_ shape_ shapes - Computes the contact manifold between an heightfield and a shape, both represented as
Shape
trait-objects. - contact_
manifolds_ trimesh_ shape - Computes the contact manifold between a triangle-mesh and a shape.
- contact_
manifolds_ trimesh_ shape_ shapes - Computes the contact manifold between a triangle-mesh an a shape, both represented as
Shape
trait-objects. - contact_
manifolds_ voxels_ ball_ shapes - Computes the contact manifold between a convex shape and a ball, both represented as a
Shape
trait-object. - contact_
manifolds_ voxels_ composite_ shape - Computes the contact manifold between voxels and a composite shape.
- contact_
manifolds_ voxels_ composite_ shape_ shapes - Computes the contact manifold between voxels and a composite shape, both represented as a
Shape
trait-object. - contact_
manifolds_ voxels_ shape - Computes the contact manifold between a convex shape and a voxels shape.
- contact_
manifolds_ voxels_ shape_ shapes - Computes the contact manifold between a convex shape and a voxels shape, both represented as a
Shape
trait-object. - contact_
manifolds_ voxels_ voxels - Computes the contact manifold between a convex shape and a ball.
- contact_
manifolds_ voxels_ voxels_ shapes - Computes the contact manifold between a convex shape and a ball, both represented as a
Shape
trait-object. - distance
- Computes the minimum distance separating two shapes.
- distance_
ball_ ball - Distance between balls.
- distance_
ball_ convex_ polyhedron - Distance between a ball and a convex polyhedron.
- distance_
composite_ shape_ shape - Smallest distance between a composite shape and any other shape.
- distance_
convex_ polyhedron_ ball - Distance between a convex polyhedron and a ball.
- distance_
cuboid_ cuboid - Distance between two cuboids.
- distance_
halfspace_ support_ map - Distance between a halfspace and a support-mapped shape.
- distance_
segment_ segment - Distance between two segments.
- distance_
shape_ composite_ shape - Smallest distance between a shape and a composite shape.
- distance_
support_ map_ halfspace - Distance between a support-mapped shape and a halfspace.
- distance_
support_ map_ support_ map - Distance between support-mapped shapes.
- distance_
support_ map_ support_ map_ with_ params - Distance between support-mapped shapes.
- intersection_
test - Tests whether two shapes are intersecting.
- intersection_
test_ aabb_ segment - Test if a segment intersects an Aabb.
- intersection_
test_ aabb_ triangle - Tests if a triangle intersects an Aabb.
- intersection_
test_ ball_ ball - Intersection test between balls.
- intersection_
test_ ball_ point_ query - Intersection test between a ball and a shape implementing the
PointQuery
trait. - intersection_
test_ composite_ shape_ shape - Intersection test between a composite shape (
Mesh
,Compound
) and any other shape. - intersection_
test_ cuboid_ cuboid - Intersection test between cuboids.
- intersection_
test_ cuboid_ segment - Test if a segment intersects a cuboid.
- intersection_
test_ cuboid_ triangle - Tests if a triangle intersects an cuboid.
- intersection_
test_ halfspace_ support_ map - Intersection test between a halfspace and a support-mapped shape (Cuboid, ConvexHull, etc.)
- intersection_
test_ point_ query_ ball - Intersection test between a shape implementing the
PointQuery
trait and a ball. - intersection_
test_ segment_ cuboid - Test if a segment intersects a cuboid.
- intersection_
test_ shape_ composite_ shape - Proximity between a shape and a composite (
Mesh
,Compound
) shape. - intersection_
test_ shape_ voxels - Checks for any intersection between voxels and an arbitrary shape.
- intersection_
test_ support_ map_ halfspace - Intersection test between a support-mapped shape (Cuboid, ConvexHull, etc.) and a halfspace.
- intersection_
test_ support_ map_ support_ map - Intersection test between support-mapped shapes (
Cuboid
,ConvexHull
, etc.) - intersection_
test_ support_ map_ support_ map_ with_ params - Intersection test between support-mapped shapes (
Cuboid
,ConvexHull
, etc.) - intersection_
test_ triangle_ cuboid - Tests if a triangle intersects a cuboid.
- intersection_
test_ voxels_ shape - Checks for any intersection between voxels and an arbitrary shape.
- intersection_
test_ voxels_ shape_ shapes - Checks for any intersection between voxels and an arbitrary shape, both represented as a
Shape
trait-object. - line_
toi_ with_ halfspace - Computes the time_of_impact of an unbounded line with a halfspace described by its center and normal.
- local_
ray_ intersection_ with_ support_ map_ with_ params - Cast a ray on a shape using the GJK algorithm.
- local_
ray_ intersection_ with_ triangle - Computes the intersection between a triangle and a ray.
- ray_
toi_ with_ ball - Computes the time of impact of a ray on a ball.
- ray_
toi_ with_ halfspace - Computes the time_of_impact of a ray with a halfspace described by its center and normal.