benson training 1

This commit is contained in:
2024-04-12 11:26:14 +02:00
parent 85fd4af372
commit c3b7a9fdc9
5 changed files with 39 additions and 9 deletions

View File

@@ -269,10 +269,10 @@ public class AgentController : Agent
return distanceToCheckpoint;
}
private void OnCollisionEnter(Collision other) {
private void OnCollisionStay(Collision other) {
if (other.gameObject.tag == "Wall")
{
AddReward(-0.03f);
AddReward(-0.01f);
}
}
}