replaced engine.math.get.distance() with engine.math.distance()