浏览代码

collect local rotations

/docs-update
Hunter-Unity 5 年前
当前提交
e037175e
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 3
      Project/Assets/ML-Agents/Examples/Walker/Scripts/WalkerAgentDynamic.cs

3
Project/Assets/ML-Agents/Examples/Walker/Scripts/WalkerAgentDynamic.cs


if (bp.rb.transform != hips && bp.rb.transform != handL && bp.rb.transform != handR &&
bp.rb.transform != footL && bp.rb.transform != footR)
{
sensor.AddObservation(RagdollHelpers.GetJointRotation(bp.joint));
sensor.AddObservation(bp.rb.transform.localRotation);
// sensor.AddObservation(RagdollHelpers.GetJointRotation(bp.joint));
// sensor.AddObservation(bp.currentXNormalizedRot);
// sensor.AddObservation(bp.currentYNormalizedRot);
// sensor.AddObservation(bp.currentZNormalizedRot);

正在加载...
取消
保存