neogtz
August 12th, 2003, 04:18 PM
hi everyone,
i'm a new member of the Kirupa community, french developper (php/js/html/flash). So, pleased to be here :p:
here is my huge pb of the day:
I'm working on a pseudo-IA. On a defined area, I duplicate x clip (particles). Each particle, once created, move by itself (randomized movements inside the area). Naturally I want that particles interact between themselves. The point is : how to know if 2 particles bump ?
It's driving me totally crazy since this morning :d: because I can't make a hit test on each particle beacause each particle is moving on each enterFrame.
So if I had 30 particles, i'd be obliged to test 29 others particles on each, so it'll make 29*29 hitTest on each enterFrame :skull: I don't think it's the right way to do it...
i'would be thankfull for new ideas ...
:bu:
a+
julien_neo
i'm a new member of the Kirupa community, french developper (php/js/html/flash). So, pleased to be here :p:
here is my huge pb of the day:
I'm working on a pseudo-IA. On a defined area, I duplicate x clip (particles). Each particle, once created, move by itself (randomized movements inside the area). Naturally I want that particles interact between themselves. The point is : how to know if 2 particles bump ?
It's driving me totally crazy since this morning :d: because I can't make a hit test on each particle beacause each particle is moving on each enterFrame.
So if I had 30 particles, i'd be obliged to test 29 others particles on each, so it'll make 29*29 hitTest on each enterFrame :skull: I don't think it's the right way to do it...
i'would be thankfull for new ideas ...
:bu:
a+
julien_neo