API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

I

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: number
Penetration depth - the minimum distance to move the shapes apart.
shapeAinB: boolean
true when shapeA is fully contained within shapeB.
shapeBinA: boolean
true when shapeB is fully contained within shapeA.
Source