Пример #1
0
 public void ResetPos()
 {
     myBody.velocity         = Vector3.zero;
     transform.localPosition = startPos;
     dead = false;
     pipes.ResetPos();
     counter = 0;
 }
Пример #2
0
 public override void AgentReset()
 {
     myBody.velocity         = Vector3.zero;
     transform.localPosition = startPos;
     dead = false;
     pipes.ResetPos();
     counter = 0f;
 }
Пример #3
0
 public override void AgentReset()
 {
     transform.localPosition = startPos;
     transform.rotation      = Quaternion.Euler(0, 0, 0);
     rb2d.velocity           = Vector3.zero;
     dead    = false;
     counter = 0f;
     pipes.ResetPos();
 }
Пример #4
0
 public override void OnEpisodeBegin()
 {
     //Debug.Log(transform.position.x);
     Debug.Log("Episode Begin");
     isDead = false;
     pipes.ResetPos();
     m_AgentRb.velocity = Vector3.zero;
     transform.position = startPos;
     RandomizeY();
     score.resetScore();
 }
Пример #5
0
    public void AgentReset()
    {
        myBody.velocity         = Vector3.zero;
        transform.localPosition = startPos;
        dead = false;
        pipes.ResetPos();
        counter = 0f;


        ////testNumber++; no sense
        ///// collectdatapath = @"D:\Evaluation\3 Deep Q Learning\1 no exp\" + testNumber.ToString() + ".txt";
    }
Пример #6
0
    private void ResetEverything(int index)
    {
        switch (index)
        {
        case 1:
            pip1.ResetPos();
            break;

        case 2:
            pip2.ResetPos();
            break;

        case 3:
            pip3.ResetPos();
            break;

        case 4:
            pip4.ResetPos();
            break;
        }
    }