12
« on: May 09, 2018, 07:16:55 pm »
I am trying to get the collision to read the closest contact. as you can see in the pic. the Red part of the line on each enemy has a sensor collision on it saying when it contacts a wall measure that walls distance to self. i have a draw instance above their heads showing wall distance and player distance. the 2 enemies in the top right, should be reading lower numbers on wall #. but they are not. they read the last wall collided with and ignore the previous collisions.
i have created attribute to make wall read happen only once, this doesnt work or update. i also, added to it, to make it toggle on again. but it ignores the closest wall. so i stripped it back down to the basic distance measurement.
Is there a way i can make the sensor read the closest contact? pics are attached. thanks