Exemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        GameObject trail_obj = Instantiate(trail_prefab, new Vector3(0, 0, 0), Quaternion.identity);

        trail_obj.transform.parent = transform;
        trail    = trail_obj.GetComponent <newton_trail>();
        tracking = true;
        a_max    = 2f;
    }
Exemplo n.º 2
0
Arquivo: Motive.cs Projeto: schreck/sg
    // Start is called before the first frame update
    void Start()
    {
        a = new Vector3(.1f, .1f, .1f);
        v = new Vector3(0, 0, 0);
        GameObject trail_obj = Instantiate(trail_prefab, new Vector3(0, 0, 0), Quaternion.identity);

        trail_obj.transform.parent = transform;
        trail      = trail_obj.GetComponent <newton_trail>();
        start_time = Time.time;
    }