Ejemplo n.º 1
0
        public FVec3 GetRandomPointInWalkables(FPseudoRandom random)
        {
            int   index = this.GetRandomIndexInWalkables(random);
            FVec3 coord = this.IndexToCoord(index);

            coord.x *= this.scale.x;
            coord.z *= this.scale.z;
            return(new FVec3(random.NextFix64(coord.x, coord.x + this.scale.x), coord.y,
                             random.NextFix64(coord.z - this.scale.z, coord.z)));
        }