Just a matter of distance

smurftedsmurfted Member, PRO Posts: 570

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

  • MentalDonkeyGamesMentalDonkeyGames Member Posts: 1,276

    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

  • SocksSocks London, UK.Member Posts: 12,822
    edited April 2016

    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.

  • smurftedsmurfted Member, PRO Posts: 570

    @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..

Sign In or Register to comment.