benson training 1
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user