getDistance method

dynamic getDistance()

Implementation

getDistance() {
  return this.object.position.distanceTo(this.target);
}