melonjs / melonJS

a fresh, modern & lightweight HTML5 game engine
https://melonjs.org
MIT License
5.92k stars 643 forks source link

confirm the raycast feature is working properly #1151

Closed obiot closed 1 year ago

obiot commented 2 years ago

following the quick 14.0.1 release to fix an issue with collision detection (#1149), verify that the raycast function is working properly : https://melonjs.github.io/melonJS/docs/melonjs/collision.html#rayCast

cpravetz commented 1 year ago

I believe line 120 of collision.js is:

rayCast(line, result) { return game.world.rayCast(line, result); }

but should be:

rayCast(line, result) { return game.world.detector.rayCast(line, result); }

obiot commented 1 year ago

indeed, good catch ! thank you 👍 👍 👍