Beispiel #1
0
        public void LookAtH(ObjBase other)
        {
            Vector3 dir = other.GetPos() - GetPos();

            dir.y = 0f;
            SetRot(Quaternion.LookRotation(dir));
        }
Beispiel #2
0
 public bool IsNear(ObjBase other, float dist)
 {
     return(IsNear(other.GetPos(), dist));
 }