flixel
flixel copied to clipboard
Suggestion: Raycast with Sprites
This came up in the Haxe Discord, but raycasting already exists in Nape. Would it be possible to bring this functionality to regular HF?
The best ending would be a raycast that listens to both tiles and an FlxTypedGroup(s).
Hey, @chosencharacters I think Echo https://austineast.dev/echo/ also supports raycasting. I feel like the HaxeFlixel team would like users to pick whatever physics engine they want, Nape, Echo, Box2D etc. to enable raycasting and not be locked to one way of doing it. I also don't know how difficult raycasting would be to add.
can vouch for raycasting in echo, I have sample a project demonstrating a way to use them in flixel here https://github.com/Gioele-Bencivenga/FlxEchoSensorCasts