UnitySDK/Assets/ML-Agents/Examples/Walker/Scripts/WalkerAgent.cs
/// <summary>
/// Loop over body parts and reset them to initial conditions.
/// </summary>
Loop over body parts and reset them to initial conditions.
Loop over body parts and reset them to initial conditions .
public override void AgentReset()
    {
        if (m_DirToTarget != Vector3.zero)
        {
            transform.rotation = Quaternion.LookRotation(m_DirToTarget);
        }
        foreach (var bodyPart in m_JdController.bodyPartsDict.Values)
        {
            bodyPart.Reset(bodyPart);
        }
        m_IsNewDecisionStep = true;
        m_CurrentDecisionStep = 1;
        SetResetParameters();
    }
public override void AgentReset ( ) { if ( m_DirToTarget != Vector3 . zero ) { transform . rotation = Quaternion . LookRotation ( m_DirToTarget ) ; } foreach ( var bodyPart in m_JdController . bodyPartsDict . Values ) { bodyPart . Reset ( bodyPart ) ; } m_IsNewDecisionStep = true ; m_CurrentDecisionStep = 1 ; SetResetParameters ( ) ; }
Loop over body parts and reset them to initial conditions.
Loop over body parts and reset them to initial conditions .