BabylonJS / havok

The Havok Physics plugin runtime files (wasm and js)
16 stars 4 forks source link

Body to ignore param not working on raycast queries #21

Closed cijaaimee closed 3 months ago

cijaaimee commented 3 months ago

Hello,

I've been using Havok without BabylonJS and noticed that the "optional body to ignore" parameter in the raycast query is, ironically, ignored. I initially suspected it was an issue with my code but I no longer think so.

I've made a simple demo to show the issue: https://playground.babylonjs.com/#PY59V9#21. In the demo, two boxes are created and a ray is casted through them. The HP_World_CastRayWithCollector call is meant to ignore box nº1, yet HP_QueryCollector_GetCastRayResult consistently returns that as the hit point.

Best regards, James