Just a matter of distance
smurfted
Member, PRO Posts: 586
i have 5 identical actors and i need to know which one is closest to a target object. Any ideas on how could i go about this?
Comments
I think @Armelline made a demo for someone a while ago when the same question was asked. I can't find it, but maybe he can link it here.
Mental Donkey Games
Website - Facebook - Twitter
Have the target actor spawn a 'detector' actor with a circular collision shape that grows in size until it collides with the nearer of the five actors.
@MentalDonkeyGames - do you remember the technique used?
@socks - excellent idea. i'll make a little test rig and check it out.
Any more ideas are welcome in the meantime..