浏览代码

lift pink balls to another level

/develop/bisim-sac-transfer
yanchaosun 4 年前
当前提交
68544337
共有 3 个文件被更改,包括 6 次插入5 次删除
  1. 4
      Project/Assets/ML-Agents/Examples/Reacher/Prefabs/Agent.prefab
  2. 4
      Project/Assets/ML-Agents/Examples/Reacher/Prefabs/NewAgent.prefab
  3. 3
      Project/Assets/ML-Agents/Examples/Reacher/Scripts/NewReacherAgent.cs

4
Project/Assets/ML-Agents/Examples/Reacher/Prefabs/Agent.prefab


m_EditorClassIdentifier:
m_BrainParameters:
VectorObservationSize: 33
NumStackedVectorObservations: 3
NumStackedVectorObservations: 1
m_Model: {fileID: 11400000, guid: d7bdb6a78154f4cf99437d67e4a569a8, type: 3}
m_Model: {fileID: 11400000, guid: 66e38dc39b8474661869e59a21ed2837, type: 3}
m_InferenceDevice: 0
m_BehaviorType: 0
m_BehaviorName: Reacher

4
Project/Assets/ML-Agents/Examples/Reacher/Prefabs/NewAgent.prefab


m_EditorClassIdentifier:
m_BrainParameters:
VectorObservationSize: 64
NumStackedVectorObservations: 3
NumStackedVectorObservations: 1
m_Model: {fileID: 11400000, guid: e12acd64209f9468c899b9708b2702c3, type: 3}
m_Model: {fileID: 11400000, guid: 79166d8db14004ba0aa1ffdce3f62667, type: 3}
m_InferenceDevice: 0
m_BehaviorType: 0
m_BehaviorName: Reacher

3
Project/Assets/ML-Agents/Examples/Reacher/Scripts/NewReacherAgent.cs


var radians = m_BallDegrees[i] * Mathf.PI / 180f;
var ballX = 8f * Mathf.Cos(radians);
var ballY = 8f * Mathf.Sin(radians);
var ballZ = m_Deviation * Mathf.Cos(m_DeviationFreq * radians);
// var ballZ = m_Deviation * Mathf.Cos(m_DeviationFreq * radians);
var ballZ = 10f;
m_balls[i].transform.position = new Vector3(ballY, ballZ, ballX) + transform.position;
}

正在加载...
取消
保存