I need to find out if a line, with start position and end position specified, hits any shape and what position it hits it at.
I know I could use polygonShape:testPoint(x, y); but that would mean I'd have to test every position on the line, which could be bad as you can imagine. Any ideas?
Any ideas?
Um, finding out if a line "hits" any shape.
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Um, finding out if a line "hits" any shape.
This function exists in Box2D, but looks like I forgot to wrap it.
Lame.
Lame.
Re: Um, finding out if a line "hits" any shape.
Please do it for the next version Rude!
<3
<3
Re: Um, finding out if a line "hits" any shape.
Will do!
On the plus side, the release is almost ready.
On the plus side, the release is almost ready.
Re: Um, finding out if a line "hits" any shape.
Awesomesauce ^_^
Re: Um, finding out if a line "hits" any shape.
Are you ever going to add joint:Remove() body:Remove() etc?rude wrote:Will do!
On the plus side, the release is almost ready.
I know about the collect garbage thing but it would be nice to have them, they work if used correctly no?
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot], Majestic-12 [Bot] and 6 guests