Represents a collision between two entities in the game world. It contains information about the colliding entities,
their collider components, and resolution data for handling the collision response.
Example
// Example collision between player and enemy constcollision: Collision = { localEntity:playerEntity, localCollider:playerCollider, remoteEntity:enemyEntity, remoteCollider:enemyCollider, resolution: { normal:newVector2(1, 0), depth:5 } };
Represents a collision between two entities in the game world. It contains information about the colliding entities, their collider components, and resolution data for handling the collision response.
Example