Skip to main content

Interface: CollisionResult

physics/collider/collider.CollisionResult

Describes a collision between two Colliders (A and B).

field normal vector b - a normalised

field depth The length of the vector b - a

field hasCollision Wether or not the A and B are colliding

Properties

depth

โ€ข depth: number

Defined in

src/physics/collider/collider.ts:15


hasCollision

โ€ข hasCollision: boolean

Defined in

src/physics/collider/collider.ts:16


normal

โ€ข normal: vec2

Defined in

src/physics/collider/collider.ts:14