Computer Science Canada colision detection in game , with diffrent x and y radius |
Author: | kousha41564 [ Sat Jan 10, 2009 1:09 am ] | ||||
Post subject: | colision detection in game , with diffrent x and y radius | ||||
alright , i got one circle wiht 2 radiuses that equal the same number. then i have an oval wiht 2 DIFFRENT radius. so its like circle one Xradius, Yradius = 22, 22 circle2 Xradius, Yradius = 220 , 75 i am using this to check if they colided
i also tried
dosnt seem to work either after reading 10927810928 tutorials i figured i could use math distance. anyone explain how i could aply this to my situation ? this dosnt work though, please help me out. i have no idea what to do. Thanks anyone who helps |
Author: | Tony [ Sat Jan 10, 2009 3:57 am ] |
Post subject: | Re: colision detection in game , with diffrent x and y radius |
kousha41564 @ Sat Jan 10, 2009 1:09 am wrote: circle2 Xradius, Yradius = 220 , 75 That's not a circle, that's an oval. Circle collision detection makes things easier by assuming that the radius is always constant. In an oval, the radius changes depending on the angle of (possible) collision. Once you figure out the angles and radii, the rest is fairly similar. |
Author: | kousha41564 [ Sat Jan 10, 2009 12:32 pm ] |
Post subject: | RE:colision detection in game , with diffrent x and y radius |
sadly i have no idea at all what you mean well i understand what you mean, but no idea how to go towards solving it. |
Author: | kousha41564 [ Sat Jan 10, 2009 1:01 pm ] |
Post subject: | RE:colision detection in game , with diffrent x and y radius |
alright i am going crazzzy over this. it isnt possible :'( lol... the circle or oval in this case is only imaginery. it is to check if my character has ran into an object. i figure i could just use line colision. so how would i go to do that? if the distance of the circle and the line is less than the radius of the circle then colision occurs. how do i get the distance between the line and the center of the circle though ? omg.... i think i ma kill myself |
Author: | kousha41564 [ Sat Jan 10, 2009 1:15 pm ] | ||
Post subject: | RE:colision detection in game , with diffrent x and y radius | ||
i got it
if anyone has any better sugestions than feel free to help me out lol |