Geometry
Geometry utilities for computing hulls, testing point overlap, building polygons, and performing local ray casts against shape primitives.
Functions
Compute the AABB of a transformed capsule.
Compute mass properties of a capsule.
Compute the AABB of a transformed circle.
Compute mass properties of a circle.
Compute the convex hull of a set of points. Returns a hull with 0 points on failure.
Compute the AABB of a transformed polygon.
Compute mass properties of a convex polygon.
Compute the AABB of a transformed line segment.
Make an offset convex polygon from a convex hull.
Make a convex polygon from a convex hull.
Make a rounded box polygon centered at the origin.
Make a square polygon (box with equal half-widths).
Test a point for overlap with a capsule in local space.
Test a point for overlap with a circle in local space.
Test a point for overlap with a convex polygon in local space.
Ray cast versus capsule shape in local space. Initial overlap is treated as a miss.
Ray cast versus circle shape in local space. Initial overlap is treated as a miss.
Ray cast versus polygon shape in local space. Initial overlap is treated as a miss.
Ray cast versus segment shape in local space. Initial overlap is treated as a miss.
Shape cast versus a capsule. Initial overlap is treated as a miss.
Shape cast versus a circle. Initial overlap is treated as a miss.
Shape cast versus a polygon. Initial overlap is treated as a miss.
Shape cast versus a segment. Initial overlap is treated as a miss.
Transform a polygon. Useful for transferring a shape from one body to another.
Validate a previously computed hull. This is expensive and should not be called at runtime.