Results 1 to 4 of 4
Thread: I need some math help
June 15th, 2009, 10:40 AM #188Borderline User
I need some math help
let me start by saying that I am horrible at math and I am in some dire need of help. I have a bunch of objects on the stage and I'm trying to find out if the center of the smaller objects is inside a larger one. Please see attached illustration.
the x's mark the centers of the objects. I'm trying to find which of the black objects' centers are within the larger blue object. eventually I'll need to move them to a point on the blue objects perimeter, but if I can some help with this it will be a huge step in the right direction. Please let me know if that makes sense or not.
June 15th, 2009, 01:04 PM #2
you don't need math, try with hitTest. you can test if an object hits some x,y coordinates or another object
June 15th, 2009, 02:51 PM #3
If you want to use math, see the attached example.
June 15th, 2009, 03:45 PM #488Borderline User