예제 #1
0
    public void SetHeights(Vector3 origin)
    {
        Height = Vector3.Distance(origin, transform.position);

        MinHeight = VerticeIds.Select(v => _vertexManager.FindById(v)).Min(x => Vector3.Distance(x.Position, origin));
        MaxHeight = VerticeIds.Select(v => _vertexManager.FindById(v)).Max(x => Vector3.Distance(x.Position, origin));

        MeanHeight  = (MinHeight + MaxHeight) / 2;
        DeltaHeight = MaxHeight - MinHeight;
    }