Skip to main content

Crate wreck

Crate wreck 

Source

Modules§

soa
stretched

Structs§

ArrayConvexPolygon
A convex polygon backed by fixed-size arrays, using const generics so it can be constructed and stored in const / static contexts.
ArrayConvexPolytope
A convex polytope defined by half-planes and vertices, using const generics so it can be constructed and stored in const / static contexts.
Capsule
Collider
ConvexPolygon
A bounded convex polygon in 3D: a flat convex shape defined by a center, a normal direction, and a list of 2D vertices (in a local tangent frame) forming a convex boundary.
ConvexPolytope
Cuboid
Line
An infinite line: origin + t * dir for all t ∈ (-∞, ∞).
LineSegment
A line segment from p1 to p1 + dir.
NoPcl
Plane
An infinite plane defined as a half-space: normal · x <= d. The plane surface is at normal · x = d; everything on the side opposite to the normal is considered solid.
Point
Pointcloud
Ray
A ray: origin + t * dir for t ∈ [0, ∞).
Sphere

Enums§

ConvexPolygonStretch
LineSegmentStretch
LineStretch
RayStretch

Traits§

Bounded
ColliderComponent
ColliderQuery
Trait for types that can query a Collider for collisions. Each shape type implements this with its own optimized dispatch path, so Collider::collides and collides_other just call through here.
Collides
CollidesWithEverything
Scalable
Stretchable
Transformable