API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceCollisionResponse
@codexo/exojs / math / stable
Result of a successful Collidable.collidesWith call. Contains the two participating shapes, the penetration depth, containment flags, and the minimum-translation vectors (normal + vector) needed to separate them.
7
props
0
methods
0
events
Import
import { CollisionResponse } from '@codexo/exojs'Result of a successful Collidable.collidesWith call. Contains the two participating shapes, the penetration depth, containment flags, and the minimum-translation vectors (normal + vector) needed to separate them.
Properties7
overlap: numberPenetration depth - the minimum distance to move the shapes apart.
Unit normal of the minimum-translation axis.
Minimum-translation vector: projectionN scaled by overlap.
shapeAinB: booleantrue when shapeA is fully contained within shapeB.
shapeBinA: booleantrue when shapeB is fully contained within shapeA.
Source