Module contact_query

Source
Expand description

Geometric queries for computing information about contacts between two Colliders.

This module contains the following contact queries:

Contact queryDescription
contactComputes one pair of contact points between two Colliders.
contact_manifoldsComputes all ContactManifolds between two Colliders.
closest_pointsComputes the closest points between two Colliders.
distanceComputes the minimum distance separating two Colliders.
intersection_testTests whether two Colliders are intersecting each other.
time_of_impactComputes when two moving Colliders hit each other for the first time.

For geometric queries that query the entire world for intersections, like raycasting, shapecasting and point projection, see spatial queries.

Structs§

TimeOfImpact
The result of a time of impact computation between two moving Colliders.

Enums§

ClosestPoints
Information about the closest points between two Colliders.

Functions§

closest_points
Computes the ClosestPoints between two Colliders.
contact
Computes one pair of contact points between two Colliders.
contact_manifolds
Computes all ContactManifolds between two Colliders.
distance
Computes the minimum distance separating two Colliders.
intersection_test
Tests whether two Colliders are intersecting each other.
time_of_impact
Computes when two moving Colliders hit each other for the first time.

Type Aliases§

TimeOfImpactStatus
The way the time of impact computation was terminated.
UnsupportedShape
An error indicating that a contact query is not supported for one of the Collider shapes.