浏览代码

half damage small agent

/asymm-envs
Andrew Cohen 5 年前
当前提交
08b9aabc
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 3
      Project/Assets/ML-Agents/Examples/CubeWars/Scripts/SmallCubeAgent.cs

3
Project/Assets/ML-Agents/Examples/CubeWars/Scripts/SmallCubeAgent.cs


float m_ShootTime;
Rigidbody m_AgentRb;
float m_HitPoints;
// Speed of agent rotation.
public float turnSpeed;
float m_Bonus;

}
else if (hit.collider.gameObject.CompareTag("StrongLargeAgent") || hit.collider.gameObject.CompareTag("WeakLargeAgent"))
{
hit.collider.gameObject.GetComponent<LargeCubeAgent>().HitAgent(.02f);
hit.collider.gameObject.GetComponent<LargeCubeAgent>().HitAgent(.01f);
AddReward(.1f + .4f * m_Bonus);
}

正在加载...
取消
保存