Sphere vs Box collision detector.

Constructor

new(swapped:Bool)

If swapped is true, the collision detector expects BoxGeometry and SphereGeometry for the first and second argument of SphereBoxDetector.detect. If swapped is false, the collision detector expects SphereGeometry and BoxGeometry instead.

Inherited Variables

Inherited Methods

Defined by Detector

detect(result:DetectorResult, geom1:Geometry, geom2:Geometry, transform1:Transform, transform2:Transform, cachedData:CachedDetectorData):Void

Computes the contact manifold of two collision geometries geom1 and geom2 with the transforms transform1 and transform2, and stores it to result. cachedData is used to improve performance of collision detection in some detectors.