protected override void OnRenderObjectDerived() { Controller.Draw(); if (ShowRoot) { RootSeries.Draw(); } if (ShowGoal) { GoalSeries.Draw(); } if (ShowCurrent) { StyleSeries.Draw(); } if (ShowPhase) { PhaseSeries.Draw(); } if (ShowContacts) { ContactSeries.Draw(); } if (ShowEnvironment) { Environment.Draw(UltiDraw.Mustard.Transparent(0.25f)); } if (ShowInteraction) { Geometry.Draw(UltiDraw.Cyan.Transparent(0.25f)); } if (ShowBiDirectional) { UltiDraw.Begin(); for (int i = 0; i < PosePrediction.Length; i++) { UltiDraw.DrawSphere(PosePrediction[i], Quaternion.identity, 0.05f, UltiDraw.Magenta); } for (int i = 0; i < RootPrediction.Length; i++) { UltiDraw.DrawCircle(RootPrediction[i].GetPosition(), 0.05f, UltiDraw.DarkRed.Darken(0.5f)); UltiDraw.DrawArrow(RootPrediction[i].GetPosition(), RootPrediction[i].GetPosition() + 0.1f * RootPrediction[i].GetForward(), 0f, 0f, 0.025f, UltiDraw.DarkRed); if (i < RootPrediction.Length - 1) { UltiDraw.DrawLine(RootPrediction[i].GetPosition(), RootPrediction[i + 1].GetPosition(), UltiDraw.Black); } } for (int i = 0; i < GoalPrediction.Length; i++) { UltiDraw.DrawCircle(GoalPrediction[i].GetPosition(), 0.05f, UltiDraw.DarkGreen.Darken(0.5f)); UltiDraw.DrawArrow(GoalPrediction[i].GetPosition(), GoalPrediction[i].GetPosition() + 0.1f * GoalPrediction[i].GetForward(), 0f, 0f, 0.025f, UltiDraw.DarkGreen); if (i < GoalPrediction.Length - 1) { UltiDraw.DrawLine(GoalPrediction[i].GetPosition(), GoalPrediction[i + 1].GetPosition(), UltiDraw.Black); } } UltiDraw.End(); } }
protected override void DerivedDraw(MotionEditor editor) { CylinderMap sensor = GetCylinderMap(editor.GetCurrentFrame(), editor.Mirror); sensor.Draw(Color, DrawReferences, DrawDistribution); }