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