/// <summary> /// Reset the agent when an episode begins /// </summary> public override void OnEpisodeBegin() { Vector3 newPosition; Quaternion newRotation; if (trainingMode) { checkpointHandler.AssignRandomCheckpoint(out newPosition, out newRotation); } else { checkpointHandler.AssignStartCheckpoint(out newPosition, out newRotation); } kartMovement.Reset(newPosition, newRotation); }
protected override void OnReset() { kartMovement.Reset(startPosition, startRotation); }