From 79659cbac7e43d246360a6cab66991d0ac12d0bb Mon Sep 17 00:00:00 2001 From: vincentpierre Date: Fri, 15 Jun 2018 14:25:47 -0700 Subject: [PATCH] Replaced Collision enter with collision stay --- .../Assets/ML-Agents/Examples/WallJump/Scripts/WallJumpAgent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unity-environment/Assets/ML-Agents/Examples/WallJump/Scripts/WallJumpAgent.cs b/unity-environment/Assets/ML-Agents/Examples/WallJump/Scripts/WallJumpAgent.cs index 3f4ab2ef4b..60056548cd 100644 --- a/unity-environment/Assets/ML-Agents/Examples/WallJump/Scripts/WallJumpAgent.cs +++ b/unity-environment/Assets/ML-Agents/Examples/WallJump/Scripts/WallJumpAgent.cs @@ -244,7 +244,7 @@ public override void AgentAction(float[] vectorAction, string textAction) } // Detect when the agent hits the goal - void OnTriggerEnter(Collider col) + void OnTriggerStay(Collider col) { if (col.gameObject.CompareTag("goal") && DoGroundCheck(0.4f)) {