StaticresolveResolves collision between two axis-aligned boxes, returning a correction vector.
The first box.
The second box.
Vector to store the correction (points from b2 to b1, along the axis of least penetration).
True if collision was resolved.
StaticresolveResolves collision between an axis-aligned box and an oriented bounding box, returning a correction vector.
The box.
The OBB.
Vector to store the correction (points from o to b).
True if collision was resolved.
StaticresolveResolves collision between two OBBs via the Separating Axis Theorem, returning the minimum-translation-vector correction.
True if collision was resolved.
StaticresolveResolves collision between a sphere and a box, returning a correction vector.
The sphere (e.g. Camera).
The box (e.g. Wall).
Vector to store the correction.
True if collision was resolved.
StaticresolveResolves collision between a sphere and an OBB, returning a correction vector.
The sphere.
The OBB.
Vector to store the correction (points from the OBB towards the sphere).
True if collision was resolved.
StaticresolveResolves collision between two spheres, returning a correction vector.
The first sphere.
The second sphere.
Vector to store the correction (points from s2 to s1).
True if collision was resolved.
StaticsweepSweeps a moving sphere against a static AABB for CCD. Approximates the swept volume as the box expanded by the sphere's radius on every axis (a cheap, standard approximation -- the true Minkowski sum would round the box's edges/corners, which this cheap version doesn't).
The moving sphere's center at the start of this step.
The moving sphere's displacement over this step (not normalized).
The moving sphere's radius.
The static box to sweep against.
The time-of-impact as a fraction of delta in [0, 1], or -1 if no impact.
StaticsweepSweeps a moving sphere against a static OBB for CCD, by transforming the sweep into the OBB's local space (where it becomes an axis-aligned sphere-vs-box sweep, same approach as sweepSphereBox).
The time-of-impact as a fraction of delta in [0, 1], or -1 if no impact.
StaticsweepSweeps a moving sphere against a static sphere, used for Continuous Collision Detection (CCD) of fast-moving bodies that could otherwise tunnel through thin/small geometry in a single discrete step.
The moving sphere's center at the start of this step.
The moving sphere's displacement over this step (NOT normalized -- its length matters, since the returned time-of-impact is a fraction of this vector).
The moving sphere's radius.
The static sphere to sweep against.
The time-of-impact as a fraction of delta in [0, 1], or -1 if no impact occurs
during this sweep (including if the two spheres already overlap at origin, since that's a
pre-existing overlap the discrete resolver already handles, not a new tunneling event).
StatictestPerforms a collision test between two bounding volumes.
Static class for collision detection and resolution.