コード例 #1
0
    // Start is called before the first frame update
    void Start()
    {
        Vector3 c = new Vector3(center.transform.position.x,
                                center.transform.position.y,
                                center.transform.position.z);

        angle = angle * Mathf.Deg2Rad;

        foreach (GameObject p in points)
        {
            Coords position = new Coords(p.transform.position, 1);
            p.transform.position = HolisticMath.Shear(position, shear.x, shear.y, shear.z).ToVector();
        }

        DrawWireFrame();
    }