# 2D colision with vector map

Show 80 post(s) from this thread on one page
Page 2 of 2 First 12
• 08-13-2003
confuted
Quote:

Originally posted by Hunter2
How so? I DID include the "if moving up and right" part, you realize...

whoops, I missed that part. It would still be difficult and messy, though :rolleyes:

Ummm... to solve the problem with the angle to one of the outside walls being greater, you could test to find the shape with the closest midpoint (combining my two methods) and then find the greatest angle on that shape. Or you could represent the outside wall with smaller line segments. Or, if you're moving in small enough steps, it won't be a problem when the point gets right up to the wall, because that angle will be almost 180 degrees.
• 08-13-2003
XSquared
>>Also, XSquared, I don't understand your method... Isn't B always going to be greater than A, since it is A+something?
• 08-13-2003
Hunter2
Oh, IC what you mean now...
• 08-16-2003
confuted
There are two collision detection tutorials here
Show 80 post(s) from this thread on one page
Page 2 of 2 First 12