public AbstractWorms(int seed) { _seed = seed; _dirThreshold = 1.6f; _wallThreshold = 1.65f; _thresholdOffsetFront = 0; _thresholdOffsetLevel = 0; _thresholdOffsetVerticalDir = 0; _lenght = 10; _limitWidth = 3; _limitHeight = 1; _emptyRateOffset = 0; _path = new WormsPath(); initDirectionDenerator(); InitWormsGenerator(); }
protected virtual Vector3 getWorldPos(WormsPath path, int step) { Vector3 worldpos = new Vector3(path.path[step].x + path.startPoint.x, path.path[step].y + path.startPoint.y, path.path[step].z + path.startPoint.z); return(worldpos); }