touchingGround = true;
if (penalizeGroundContact)
{
agent.SetReward(groundContactPenalty);
// agent.SetReward(groundContactPenalty);
agent.SetReward(0);
}
if (agentDoneOnGroundContact)
void FixedUpdate()
if (touchingGround)