浏览代码

CrawlerLegContact incorrectly refers to Ground (#589)

No game object is named "Platform" therefore the legs never make contact with anything
/develop-generalizationTraining-TrainerController
vincentpierre 7 年前
当前提交
086dd450
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      unity-environment/Assets/ML-Agents/Examples/Crawler/Scripts/CrawlerLegContact.cs

2
unity-environment/Assets/ML-Agents/Examples/Crawler/Scripts/CrawlerLegContact.cs


}
void OnCollisionStay(Collision other){
if (other.gameObject.name == "Platform")
if (other.gameObject.name == "Ground")
{
agent.leg_touching[index] = true;
}

正在加载...
取消
保存