Beispiel #1
0
    Vector3F checkRange(Vector3F v)
    {
        Fix32 b = Fix32.Create(1, 100);

        //Debug.Log("b:"+(float)b);
        if (Fix32.Zero < v.x && v.x < b)
        {
            v.x = b;
        }
        else if (Fix32.Zero < v.y && v.y < b)
        {
            v.y = b;
        }
        else if (Fix32.Zero < v.z && v.z < b)
        {
            v.z = b;
        }
        return(v);
    }