Exemple #1
0
    private void InitNewShape(Shape2 shape, Vector3 finalFaceNormal)
    {
        var c = shape.CentreAndCache();

        shape.InitFaces(finalFaceNormal);

        shape.transform.position = transform.TransformPoint(c);
        shape.transform.rotation = transform.rotation;
    }