Exemple #1
0
 public float DistanceToSquared(TransformInfo other)
 {
     return((other.position - position).sqrMagnitude);
 }
Exemple #2
0
 public Vector3 DirectionTo(TransformInfo other)
 {
     return((other.position - position).normalized);
 }
Exemple #3
0
 public float DistanceTo(TransformInfo other)
 {
     return((other.position - position).magnitude);
 }