示例#1
0
            public Vector3 getPos()
            {
                if (trackedEntity != null && !trackedEntity.Closed && !trackedEntity.MarkedForClose)
                {
                    return(trackedEntity.GetPosition());
                }

                return(relativeTo != null?NPCControlBlock.localToWorldPos(relativeTo, targetPos) : targetPos);
            }
示例#2
0
        public Vector3 getGlobalPos(Vector3 pos)
        {
            if (relativeTo == null)
            {
                return(pos);
            }

            return(NPCControlBlock.localToWorldPos(relativeTo, pos));
        }