Sphere vs Capsule detector.

Constructor

new(swapped:Bool)

If swapped is true, the collision detector expects CapsuleGeometry and SphereGeometry for the first and second argument of SphereCapsuleDetector.detect. If swapped is false, the collision detector expects SphereGeometry and CapsuleGeometry 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.