flixel icon indicating copy to clipboard operation
flixel copied to clipboard

Suggestion: Raycast with Sprites

Open chosencharacters opened this issue 7 years ago • 2 comments

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).

chosencharacters avatar Nov 30 '18 00:11 chosencharacters

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.

RichardBray avatar Oct 21 '20 08:10 RichardBray

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

Gioele-Bencivenga avatar Mar 19 '21 22:03 Gioele-Bencivenga