//Position meshes appropriately in space
    void Update()
    {
        foreach (GameObject link in links)
        {
            Transform tff;

            if (tfviz != null && tfviz.queryTransforms(NameSpace + "/" + link.name, out tff))
            {
                link.transform.position = tff.position;
                link.transform.rotation = tff.rotation;
            }
        }
    }
Example #2
0
    //Position meshes appropriately in space
    void Update()
    {
        foreach (Transform tf in transform)
        {
            Transform tff;

            if (tfviz != null && tfviz.queryTransforms(NameSpace + "/" + tf.name, out tff))
            {
                tf.transform.position = tff.position;
                tf.transform.rotation = tff.rotation;
            }
        }
    }