How to draw a line between the same object?

Lets say I have three different objects. A pineapple, apple, and orange. But all the apples that are near each other I want to draw lines to. Apple to apple. How do I do this? I can only draw a line between two different objects, not the same object.

This sounds very similar to the issue of trying to check for collisions between instances of the same object. The solution there is to add hidden ‘collision’ objects and stick/link them to the actual objects. Then check for a collision between the real object and the collision object. See here for more details:

So in this case perhaps you need to draw a line between your apple objects and a new, hidden linked object attached to each apple…

1 Like