What is the easiest way to determine the Vector2 where two rectangles collide in #xna? Not using per pixel collision.
-
-
Replying to @DaveVoyles
@DaveVoyles erttr, rectangle.intersects. or did you try that already? :-D1 reply 0 retweets 0 likes -
Replying to @SimonDarksideJ
@SimonDarksideJ That returns a boolean value if I am not mistaken, and not a Vector2 :)@DaveVoyles1 reply 0 retweets 0 likes -
Replying to @ErtaySh
@ErtaySh@DaveVoyles ert, whoops :-P, then I supposed the easiest way is to do the math once the test is positive#shouldreadQfully#eggonF1 reply 0 retweets 0 likes -
Replying to @SimonDarksideJ
@SimonDarksideJ Yeah, I don't think there is .Method way :D@DaveVoyles1 reply 0 retweets 0 likes -
Replying to @ErtaySh
@ErtaySh@DaveVoyles your right there's not but its not hard to work out using the centre pos of each triangle once they intersect1 reply 0 retweets 0 likes -
Replying to @SimonDarksideJ
@SimonDarksideJ@ErtaySh@DaveVoyles Take each corner and use a line equation to do it, I wrote a sample, could post it I guess (y = mx + c)2 replies 0 retweets 0 likes
@NemoKrad @SimonDarksideJ @ErtaySh that may be my best bet. I have the ball and bat collide well, but I use garbage code for initializing…
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.