Skip to content

Commit cff4ad4

Browse files
vincentpierreawjuliani
authored andcommitted
Replaced Collision enter with collision stay (#867)
1 parent ee535eb commit cff4ad4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ public override void AgentAction(float[] vectorAction, string textAction)
244244
}
245245

246246
// Detect when the agent hits the goal
247-
void OnTriggerEnter(Collider col)
247+
void OnTriggerStay(Collider col)
248248
{
249249
if (col.gameObject.CompareTag("goal") && DoGroundCheck(0.4f))
250250
{

0 commit comments

Comments
 (0)