public override void SetDragPositionTopDownView(double?x = null, double?y = null, double?z = null) { if (!x.HasValue || !z.HasValue) { return; } PositionAngle posAngle = GetPositionAngle(); double dist = MoreMath.GetDistanceBetween(posAngle.X, posAngle.Z, x.Value, z.Value); double angle = MoreMath.AngleTo_AngleUnits(posAngle.X, posAngle.Z, x.Value, z.Value); double xDiff = x.Value - posAngle.X; double zDiff = z.Value - posAngle.Z; if (_useRecommendedArrowLength) { Config.Stream.SetValue((float)xDiff, MarioConfig.StructAddress + MarioConfig.SlidingSpeedXOffset); Config.Stream.SetValue((float)zDiff, MarioConfig.StructAddress + MarioConfig.SlidingSpeedZOffset); } else { GetParentMapTracker().SetSize((float)(Scales ? dist : dist *Config.CurrentMapGraphics.MapViewScaleValue)); WatchVariableSpecialUtilities.SetMarioSlidingAngle(angle); } }
protected override void SetYaw(double yaw) { WatchVariableSpecialUtilities.SetMarioSlidingAngle(yaw); }