Beispiel #1
0
    private void PlaceVertex(object sender, ControllerInteractionEventArgs e)
    {
        var events = (VRTK_ControllerEvents)sender;
        var vertex = Instantiate(vertexPrefab) as GameObject;

        vertex.transform.position = events.transform.position;

        quad.AddVertex(sender == leftController, vertex.transform.position);
    }