dimforge / ncollide

2 and 3-dimensional collision detection library in Rust.
https://ncollide.org
Apache License 2.0
921 stars 105 forks source link

Fix point/aabb projection along the x axis when the point is inside of the AABB. #319

Closed sebcrozet closed 4 years ago

sebcrozet commented 4 years ago

The projection was wrong in the specific case where:

In this situation, the computed projection point wrong due to a flipped sign.

sebcrozet commented 4 years ago

The CI failed for WASM because of https://github.com/koute/cargo-web/issues/227 Merging anyway.