Beispiel #1
0
    float2 OffsetToNearestCell(Entity block, float gridScale)
    {
        float2 offsetToMinCell     = OffsetToMinCell(block, gridScale);
        float2 offsetToNearestCell = offsetToMinCell.NegativeSafeMod(gridScale);

        return(offsetToNearestCell);
    }