tag:blogger.com,1999:blog-7303886057277543329.post7967766450681124299..comments2017-03-10T17:31:54.463+01:00Comments on Xeeynamo's blog: Collision detection challangeXeeynamohttp://www.blogger.com/profile/10054561721606704120noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-7303886057277543329.post-33025558658812587362012-10-08T22:05:09.281+02:002012-10-08T22:05:09.281+02:00Hello Xeeynamo. I'd like to contact you, I hav...Hello Xeeynamo. I'd like to contact you, I have some questions about Kingdom Hearts 2 Final Mix (about the ISO itself and its editing) BTW Thanks for the patch. I know this post is not about the KH Patch but I don't think you're going to read the comments from the patch post.<br />If you need mi email or another way of talking with me (for example, here) you can tell me, no problem.<br />Thanks in advance,<br />Jordi.Jordi Catalan Maderohttps://www.blogger.com/profile/15175307410782043427noreply@blogger.comtag:blogger.com,1999:blog-7303886057277543329.post-59490168806210147032012-05-15T23:23:40.162+02:002012-05-15T23:23:40.162+02:00mmm I didn't get what you need to do. Comunque...mmm I didn't get what you need to do. Comunque se non ho capito male sei italiano :P.Marcohttps://www.blogger.com/profile/00946774956964352190noreply@blogger.comtag:blogger.com,1999:blog-7303886057277543329.post-75555998721319732662012-04-11T14:05:24.889+02:002012-04-11T14:05:24.889+02:00I did the same thing recently :) it was easy. If (...I did the same thing recently :) it was easy. If (SQRT(|C1X-C2X|^2 + |C1Y-C2Y|^2) <= R1+R2) the collision flag is true. C1 and C2 are the two circles, R1 and R2 is the radius. The problem is the rotated squares D:. If a line y=mx+q limited by two end points A(x1, y1) and B(x2, y2) cut or touch a square/circle, the collision comes, so with a rectangle I need to check four lines. I know also the formula to get the m from the angle, but I don't know the correct formula to check if a line cut a shape...Xeeynamohttps://www.blogger.com/profile/10054561721606704120noreply@blogger.comtag:blogger.com,1999:blog-7303886057277543329.post-35615357636716050552012-04-10T12:24:09.450+02:002012-04-10T12:24:09.450+02:00Regarding to 2 circles collision detection, simply...Regarding to 2 circles collision detection, simply compute the square of the euclidean distance between the two circles centers and compare it with the sum of the 2 radiuses squared (this way you prevent your code to compute the square root).<br />if distance < sum they collide<br />if distance = sum they touch each other in 1 point<br />else there is no collision.Marcohttps://www.blogger.com/profile/00946774956964352190noreply@blogger.comtag:blogger.com,1999:blog-7303886057277543329.post-17857596366629042062012-03-18T10:27:34.316+01:002012-03-18T10:27:34.316+01:00Ho ricevuto la tua richiesta ieri :)Ho ricevuto la tua richiesta ieri :)Xeeynamohttps://www.blogger.com/profile/10054561721606704120noreply@blogger.comtag:blogger.com,1999:blog-7303886057277543329.post-57256755459750150092012-03-18T10:27:23.645+01:002012-03-18T10:27:23.645+01:00Try to imagine an arm that rotate (http://www.yout...Try to imagine an arm that rotate (http://www.youtube.com/watch?v=dxDgm6GwTFA) or something that oscillates trough a rope. The only way to have that effect is to move the center point.Xeeynamohttps://www.blogger.com/profile/10054561721606704120noreply@blogger.comtag:blogger.com,1999:blog-7303886057277543329.post-91275908295285670602012-03-17T17:16:18.447+01:002012-03-17T17:16:18.447+01:00Hm, qual'è la tua email Xeeynamo? Non riesco a...Hm, qual'è la tua email Xeeynamo? Non riesco a trovarla da nessuna parte, vorrei discuture con te un pò sull'hacking di Sonic CD 2011 perchè anch'io mi era intrapreso. :) La mia email è tails92@gmail.com. Ciao!Unknownhttps://www.blogger.com/profile/01834933985265681859noreply@blogger.comtag:blogger.com,1999:blog-7303886057277543329.post-84168760046625226902012-03-17T14:31:32.063+01:002012-03-17T14:31:32.063+01:00I highly doubt you need to check pixel per pixel, ...I highly doubt you need to check pixel per pixel, that would use to much CPU power. Also, why would you even need to set the collisions for an object that is not centered? If so you just need to specify the area where the sprite is before-hand.Truthkeyhttps://www.blogger.com/profile/04820118390652377131noreply@blogger.com