How do I add the rotation, scale and translation of my object to my vertex in Unity 3D
<p>I want to get a vertex and store it in a variable. Then I want to keep updating the position, rotation and translation. Ik know I can just add up the position of the object to the position of the vertex to get the new vertex position. But I don't know how to do this with the scale and rotation. Does anyone know?</p>

<pre><code>using UnityEngine;
using System.Collections;

public class FollowVertex : MonoBehaviour {

    public Transform testSphere;
    public Transform indicator;

    void Update()
    {
        indicator.position = GetVertex();
    }

    Vector3 GetVertex()
    {
        Mesh TMesh = testSphere.GetComponent&lt;MeshFilter&gt;().mesh;
        Vector3 Tvertex = TMesh.vertices[1];

        return Tvertex + testSphere.position ; // + the rotation, scale and translation of "testSphere"
    }
}
</code></pre>

<p>Thanks in advance!</p>

<p><strong>Edit 1:</strong></p>

<p>I think I can modify this RotateAround funtion for the rotation.</p>

<pre><code>function RotateVertexAround(center: Vector3, axis: Vector3, angle: float){
    var pos: Vector3 = transform.position;
    var rot: Quaternion = Quaternion.AngleAxis(angle, axis); // get the desired rotation
    var dir: Vector3 = pos - center; // find current direction relative to center
    dir = rot * dir; // rotate the direction
    transform.position = center + dir; // define new position
    // rotate object to keep looking at the center:
    var myRot: Quaternion = transform.rotation;
    transform.rotation *= Quaternion.Inverse(myRot) * rot * myRot;
}
</code></pre>

<p>Now the Only thing I need to know is how to do the scale, can I do that with a matrix?</p>