浏览代码

try invtranspoint

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

3
Project/Assets/ML-Agents/Examples/Crawler/Scripts/CrawlerAgent.cs


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

正在加载...
取消
保存