浏览代码

try inv tr dir

/hh-develop-ragdoll-testing
HH 5 年前
当前提交
c464a9f1
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 3
      Project/Assets/ML-Agents/Examples/Walker/Scripts/WalkerAgent.cs

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


sensor.AddObservation(bp.rb.angularVelocity);
//Get position relative to hips in the context of our orientation cube's space
// sensor.AddObservation(orientationCube.transform.InverseTransformDirection(bp.rb.position - hips.position));
sensor.AddObservation(bp.rb.transform.localPosition);
sensor.AddObservation(hips.transform.InverseTransformDirection(bp.rb.position - hips.position));
// sensor.AddObservation(bp.rb.transform.localPosition);
if (bp.rb.transform != hips && bp.rb.transform != handL && bp.rb.transform != handR)
{

正在加载...
取消
保存