コード例 #1
0
        /// <inheritdoc />
        protected override void PreStep()
        {
            var ratio = _joint1.GetRatio();
            var L     = _joint1.GetCurrentLengthA() + ratio * _joint1.GetCurrentLengthB();

            DrawString($"L1 + {ratio:F2} * L2 = {L:F2}");
        }
コード例 #2
0
        /// <inheritdoc />
        public override void OnRender()
        {
            var ratio = _joint1.GetRatio();
            var L     = _joint1.GetCurrentLengthA() + ratio * _joint1.GetCurrentLengthB();

            DrawString($"L1 + {ratio:F2} * L2 = {L:F2}");
        }
コード例 #3
0
ファイル: Pulleys.cs プロジェクト: CrazyLiu00/GMap
        public override void Step(Framework.Settings settings)
        {
            base.Step(settings);

            double ratio = _joint1.GetRatio();
            double L     = _joint1.GetLength1() + ratio * _joint1.GetLength2();

            _debugDraw.DrawString(50, _textLine, "L1 + {0:n} * L2 = {1:n}", (double)ratio, (double)L);
            _textLine += 15;
        }