Skip to content

Commit ae70965

Browse files
committed
Updating C# Walljump
1 parent b0cb4e7 commit ae70965

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Project/Assets/ML-Agents/Examples/WallJump/Scripts/WallJumpAgent.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -350,9 +350,7 @@ void ConfigureAgent(int config)
350350
}
351351
else
352352
{
353-
var min = m_ResetParams.GetWithDefault("big_wall_min_height", 8);
354-
var max = m_ResetParams.GetWithDefault("big_wall_max_height", 8);
355-
var height = min + Random.value * (max - min);
353+
var height = m_ResetParams.GetWithDefault("big_wall_height", 8);
356354
localScale = new Vector3(
357355
localScale.x,
358356
height,

0 commit comments

Comments
 (0)