浏览代码

Replaced Collision enter with collision stay (#867)

/develop-generalizationTraining-TrainerController
Arthur Juliani 7 年前
当前提交
2855c222
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      unity-environment/Assets/ML-Agents/Examples/WallJump/Scripts/WallJumpAgent.cs

2
unity-environment/Assets/ML-Agents/Examples/WallJump/Scripts/WallJumpAgent.cs


}
// Detect when the agent hits the goal
void OnTriggerEnter(Collider col)
void OnTriggerStay(Collider col)
{
if (col.gameObject.CompareTag("goal") && DoGroundCheck(0.4f))
{

正在加载...
取消
保存