Contains detailed information about a collision between two shapes, including the penetration depth
and direction vector. Used to determine how to resolve and separate colliding objects.
Example
// Example collision resolution between two shapes constresolution: CollisionResolution = { penetration:5, // Shapes overlap by 5 pixels direction:newVector2(1, 0) // Collision along X axis };
Contains detailed information about a collision between two shapes, including the penetration depth and direction vector. Used to determine how to resolve and separate colliding objects.
Example