浏览代码

modify goalie

/asymm-envs
Andrew Cohen 5 年前
当前提交
f5087cee
共有 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

正在加载...
取消
保存