浏览代码

downward force tennis agent

/asymm-envs
Andrew Cohen 5 年前
当前提交
45d35fa4
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7
      Project/Assets/ML-Agents/Examples/Tennis/Scripts/TennisAgent.cs

7
Project/Assets/ML-Agents/Examples/Tennis/Scripts/TennisAgent.cs


float m_InvertMult;
FloatPropertiesChannel m_ResetParams;
float m_BallTouch;
Vector3 down = new Vector3(0f, -60f, 0f);
// Looks for the scoreboard based on the name of the gameObjects.
// Do not modify the names of the Score GameObjects

AddReward(.2f * m_BallTouch);
}
}
void FixedUpdate()
{
m_AgentRb.AddForce(down);
}
public override void OnEpisodeBegin()
{

正在加载...
取消
保存