getting distance from objetcs

Hi,
what is the best way to find out the distance to other objects around an Actor?

thanks

Try this:

distance = actor.getDistance(otherObject)

You can also swap those two, that doesn’t matter at all:

distance = otherObject.getDistance(actor)