|
|
|
|
|
|
public Material groundedMaterial; |
|
|
|
public Material unGroundedMaterial; |
|
|
|
|
|
|
|
EnvironmentParameters m_ResetParams; |
|
|
|
|
|
|
|
m_ResetParams = Academy.Instance.EnvironmentParameters; |
|
|
|
|
|
|
|
SetResetParameters(); |
|
|
|
|
|
|
|
//Setup each body part
|
|
|
|
m_JdController.SetupBodyPart(body); |
|
|
|
|
|
|
/// </summary>
|
|
|
|
public override void OnEpisodeBegin() |
|
|
|
{ |
|
|
|
SetResetParameters(); |
|
|
|
foreach (var bodyPart in m_JdController.bodyPartsDict.Values) |
|
|
|
{ |
|
|
|
bodyPart.Reset(bodyPart); |
|
|
|
|
|
|
{ |
|
|
|
GetRandomTargetPos(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public void SetResetParameters() |
|
|
|
{ |
|
|
|
m_JdController.jointDampen = m_ResetParams.GetWithDefault("dampen", 3000f); |
|
|
|
} |
|
|
|
|
|
|
|
private void OnDrawGizmosSelected() |
|
|
|