PDA

Click to See Complete Forum and Search --> : collision with lots-o-lines


notquitehere188
Dec 19th, 2004, 10:04 PM
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

wossname
Dec 20th, 2004, 03:46 AM
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.

NoteMe
Dec 20th, 2004, 08:40 AM
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?


ии

wossname
Dec 20th, 2004, 09:18 AM
Blimey, no i'm on IE today. They won't let us install anything worth having (FF for example).

notquitehere188
Dec 20th, 2004, 10:48 PM
i would just like to say

yaggaduhwuhuh

translation
i have no idea what that article is talking about

notquitehere188
Dec 20th, 2004, 10:50 PM
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)

wossname
Dec 21st, 2004, 02:52 AM
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)

NoteMe
Dec 21st, 2004, 07:35 AM
no problem in IE though (for a change)


I bet MS did that on purpose....:)...the same with their DX mailing list...:D

notquitehere188
Jan 2nd, 2005, 07:33 PM
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