浏览代码

Remove ball reward, speed up turn

/develop/dodgeball-raycasts
Ervin Teng 4 年前
当前提交
6f7891e0
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      Project/Assets/ML-Agents/Examples/Dodgeball/Scripts/DodgeBallAgent.cs

4
Project/Assets/ML-Agents/Examples/Dodgeball/Scripts/DodgeBallAgent.cs


m_DashInput = (int)discreteActions[1]; ;
//HANDLE ROTATION
m_CubeMovement.Look(10 * m_Rotate);
m_CubeMovement.Look(50 * m_Rotate);
//HANDLE XZ MOVEMENT
var moveDir = transform.TransformDirection(new Vector3(m_InputH, 0, m_InputV));

if (currentNumberOfBalls < 4)
{
PickUpBall(db);
AddReward(0.001f);
// AddReward(0.001f);
}
}
}

正在加载...
取消
保存