File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
Project/Assets/ML-Agents/Examples/FoodCollector/Scripts Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -209,6 +209,9 @@ public override void OnActionReceived(float[] vectorAction)
209
209
210
210
public override void Heuristic ( float [ ] actionsOut )
211
211
{
212
+ actionsOut [ 0 ] = 0f ;
213
+ actionsOut [ 1 ] = 0f ;
214
+ actionsOut [ 2 ] = 0f ;
212
215
if ( Input . GetKey ( KeyCode . D ) )
213
216
{
214
217
actionsOut [ 2 ] = 2f ;
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ and this project adheres to
21
21
- The Barracuda dependency was upgraded to 1.0.0 (#4118 )
22
22
#### ml-agents / ml-agents-envs / gym-unity (Python)
23
23
- Added new Google Colab notebooks to show how to use `UnityEnvironment'. (#4117 )
24
+ - Fixed issue with FoodCollector when playing with keyboard. (#4147 )
24
25
25
26
### Bug Fixes
26
27
#### com.unity.ml-agents (C#)
You can’t perform that action at this time.
0 commit comments