浏览代码

Merge branch 'soccer-2v1' into asymm-envs

/asymm-envs
Andrew Cohen 4 年前
当前提交
e2be590d
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 6
      Project/Assets/ML-Agents/Examples/Soccer/Scripts/AgentSoccer.cs

6
Project/Assets/ML-Agents/Examples/Soccer/Scripts/AgentSoccer.cs


}
if (position == Position.Goalie)
{
m_Power = 1f;
m_Power = 2000f;
m_LateralSpeed = 1.0f;
m_ForwardSpeed = 1.0f;
}

void OnCollisionEnter(Collision c)
{
var force = m_Power * m_KickPower;
if (position == Position.Goalie)
{
force = m_Power;
}
if (c.gameObject.CompareTag("ball"))
{
// Generic gets curriculum

正在加载...
取消
保存