Class: GJKAlgorithm
GJKAlgorithm is the implementation of the Gilbert–Johnson–Keerthi distance algorithm for collision detection.
Implements
Table of contents
Constructors
Methods
Constructors
constructor
+ new GJKAlgorithm(): GJKAlgorithm
Returns: GJKAlgorithm
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 |
---|---|
shapes |
IShape[] |
Returns: CollisionInfo[]
Implementation of: ICollisionAlgorithm