benson kan køre lige ud
This commit is contained in:
@@ -268,4 +268,11 @@ public class AgentController : Agent
|
||||
var distanceToCheckpoint = Vector3.Distance(transform.position, closestPoint);
|
||||
return distanceToCheckpoint;
|
||||
}
|
||||
|
||||
private void OnCollisionEnter(Collision other) {
|
||||
if (other.gameObject.tag == "Wall")
|
||||
{
|
||||
AddReward(-0.03f);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user