|
@ -370,7 +370,7 @@ public class Walker : Agent |
|
|
} |
|
|
} |
|
|
else if (m_SelectedBrain == Brain.Treadmill) |
|
|
else if (m_SelectedBrain == Brain.Treadmill) |
|
|
{ |
|
|
{ |
|
|
Debug.Log(DistanceFromTarget(5f)); |
|
|
//Debug.Log(DistanceFromTarget(5f));
|
|
|
AddReward(matchSpeedReward * lookAtTargetReward * DistanceFromTarget(5f)); |
|
|
AddReward(matchSpeedReward * lookAtTargetReward * DistanceFromTarget(5f)); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|