Skip to content

Commit 397b992

Browse files
Edited the Tennis code and retrained the model (#1746)
Addressing #1739
1 parent a4baab2 commit 397b992

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

UnitySDK/Assets/ML-Agents/Examples/Tennis/Scripts/TennisAgent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public class TennisAgent : Agent
2626
public override void InitializeAgent()
2727
{
2828
agentRb = GetComponent<Rigidbody>();
29-
ballRb = GetComponent<Rigidbody>();
29+
ballRb = ball.GetComponent<Rigidbody>();
3030
var canvas = GameObject.Find(CanvasName);
3131
GameObject scoreBoard;
3232
if (invertX)
Binary file not shown.

UnitySDK/Assets/ML-Agents/Examples/Tennis/TFModels/TennisLearning.nn.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)