Method DistanceSquared
DistanceSquared(NwGameObject)
Returns the squared distance to the target.
public float DistanceSquared(NwGameObject target)
Parameters
targetNwGameObjectThe other object to calculate distance from.
Returns
- float
The squared distance in game units, or -1 if the target is in a different area.