Interface: ICollisionAlgorithm
ICollisionAlgorithm represents a collision detection algorithm.
Implemented by
Table of contents
Methods
Methods
CalculateCollisions
▸ CalculateCollisions(shapes
: IShape[]): CollisionInfo[]
CalculateCollisions calculates all collisions between the shapes provided, returning a list of CollisionInfos, each representing a Collision.
Parameters:
Name | Type | Description |
---|---|---|
shapes |
IShape[] | The shapes to check for collisions |
Returns: CollisionInfo[]