public void ResetPos() { myBody.velocity = Vector3.zero; transform.localPosition = startPos; dead = false; pipes.ResetPos(); counter = 0; }
public override void AgentReset() { myBody.velocity = Vector3.zero; transform.localPosition = startPos; dead = false; pipes.ResetPos(); counter = 0f; }
public override void AgentReset() { transform.localPosition = startPos; transform.rotation = Quaternion.Euler(0, 0, 0); rb2d.velocity = Vector3.zero; dead = false; counter = 0f; pipes.ResetPos(); }
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(); }
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"; }
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; } }