rapier.js icon indicating copy to clipboard operation
rapier.js copied to clipboard

Distance value from a collider.contactCollider(...) check is broken in 0.18.x when collider 2 is of trimesh type

Open smjnab opened this issue 4 months ago • 2 comments

In rapier < 0.17.x, while doing a collider.contactCollider() check between a dynamic ball and a fixed trimesh collider, the distance value returned would be of similar value regardless of where on the trimesh contact occured. A low value of around -0.001.

In rapier 0.18.x the value returned is different depending on where the contact on the trimesh occurs. It can differ between no contact (where there is) to -0.6 on the same collider as used in 0.17.x test.

smjnab avatar Aug 22 '25 12:08 smjnab

This is probably originating from rapier (or parry), a minimum reproduction would be helpful

ThierryBerger avatar Aug 26 '25 13:08 ThierryBerger

https://stackblitz.com/edit/rapierjs-srnaejhd?file=src%2Findex.ts

Instructions in the file!

smjnab avatar Oct 04 '25 15:10 smjnab