I am trying to find a collision detection routine that is fast enough to be of use with eVB,
What would be best? or what do you use?
Boundary Checking Method, psuedo code below.
if my bullet x is >=enemyx and <=enemyx+enemywidth then
if my bullet y is >=enemyy and <=enemyy+enemyheight then
collision!
end if
end if
That is the only method currently I know, I have heard of Point Checking Method , Rounding To Block Boundary Method and Screen Masks
What type of collision detection have you guys used in the past for optimum performance?
I am thinking of using it in a shooter
- jarin
What would be best? or what do you use?
Boundary Checking Method, psuedo code below.
if my bullet x is >=enemyx and <=enemyx+enemywidth then
if my bullet y is >=enemyy and <=enemyy+enemyheight then
collision!
end if
end if
That is the only method currently I know, I have heard of Point Checking Method , Rounding To Block Boundary Method and Screen Masks
What type of collision detection have you guys used in the past for optimum performance?
I am thinking of using it in a shooter
- jarin