collision with lots-o-lines
i have an object moving diagonally, it basically teleports because of how fast it is going.
I need to be able to find out if, and at the exact point it would hit another object if it were actually moving
so far what i have is that it would cross the axis lines of the object but would hit at the last one it crossed (assuming that if one dosent cross you make sure it is already colliding) i need to be able to find the order it crosses all of these axis lines
I am also VERY open to suggestions about other ways to do this but it is hard and i suck at math
Re: collision with lots-o-lines
polygon hit testing...
http://support.microsoft.com/kb/q121960/
This is one of my favorite articles, it is a great way to detect intersecting lines, doesn't rely on cumbersome region objects and is very fast.
Re: collision with lots-o-lines
Quote:
Originally Posted by wossname
polygon hit testing...
http://support.microsoft.com/kb/q121960/
This is one of my favorite articles, it is a great way to detect intersecting lines, doesn't rely on cumbersome region objects and is very fast.
Hehehe.,...did you open it in FF?
http://noteme.com/images/code.gif
Love the way microsofts pages looks in FF some times...:)
BTW this looks like it is for 2D...was that what you wanted?
ØØ
Re: collision with lots-o-lines
Blimey, no i'm on IE today. They won't let us install anything worth having (FF for example).
Re: collision with lots-o-lines
i would just like to say
yaggaduhwuhuh
translation
i have no idea what that article is talking about
Re: collision with lots-o-lines
anyway, i am going to go with a bad code that uses y = mx + b because i suck at programming (have only been doing it since september)
Re: collision with lots-o-lines
Quote:
Originally Posted by notquitehere188
i would just like to say
yaggaduhwuhuh
translation
i have no idea what that article is talking about
Reading the words actually helps with that problem. If you can get it to display properly that is! :lol: no problem in IE though (for a change)
Re: collision with lots-o-lines
Quote:
Originally Posted by wossname
no problem in IE though (for a change)
I bet MS did that on purpose....:)...the same with their DX mailing list...:D
Re: collision with lots-o-lines
Quote:
Reading the words actually helps with that problem. If you can get it to display properly that is! no problem in IE though (for a change)
I did, it didnt help, im not the most intelligent of people