Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/excaliburjs/Excalibur. 🎮 Your friendly TypeScript 2D game engine for the web 🗡️ excaliburjs.com
excalibur excaliburjs game-development game-engine game-framework gamedev games html5-canvas typescript
Something went wrong. Try again.
fix: [#2473] ignore 0 sized precollisions (#2474) master
Closes #2473 This PR fixes an issue where a degenerate 0 sized collision causes issues with the precollision event emit. Previously an erroneous left precollision would be emitted when the minimum translation vector (mtv) was `(-0, -0)` <img width="299" alt="image" src="https://user-images.githubusercontent.com/612071/187574499-96889716-ba1a-418e-995e-b7673ce643e2.png"> ## Changes: - Filters out 0 sized contacts in precollision to guard against a degenerate side calculation
Author Erik Onarheim Committer GitHub Date (Sep 5, 2022, 10:10 PM UTC) Commit 3719bd69 3719bd6962645ea724fe2f3feed13e2fcf5317e3 Parent fc63c814 fc63c814fea2a32f724922fe820746621f6b51ab