示例#1
0
        /// <summary>
        /// Sets the world position. This should be the world unit position
        /// (not the scaled map unit position).
        /// </summary>
        /// <param name="position">The world position.</param>
        public void SetPosition(Vec3F position)
        {
            Position = Position.At(position);
            Box      = CreateBoxAt(position);
            GameObject.transform.position = position.MapUnit();

            Sector = World.Geometry.BspTree.Sector(position);
        }