Any help would be great on this thank you. If you have two objects on the canvas (obj A) (obj B) and they both move around dynamically (i.e the X,Y values are constantly changing).
I need to check if they intersect. I know you can do something like ObjA.X == ObjB.X && and ObjA.Y == ObjB.Y but the objects are complex (i.e made up of multiple images and x,y positions for each). So constantly checking track of every single x,y position for Obj A and checking it against every x,y image position of Obj B is a lot of overhead for each redraw. My question then is there a better way to do this? For example can you some how get information from the canvas of position x,y and tell if there is another image set to that position already? Then each object can just check it's own x,y position to see if "intersects" with another object (whatever it might be)? I mean it makes sense that if you draw Obj A at X,Y the canvas knows about it, so Obj B should be able to get that information? Is this possible somehow? I been checking the libs and I have not found anything yet. Or if anyone else has any ideas of checking dynamically changing object positions and intersections between them I am welcome to any ideas? Or am I stuck with keeping track and comparing every x,y for each object on every iteration? Thank you for any help -Chris -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en