예제 #1
0
        /// <inheritdoc />
        protected override void OnStep()
        {
            if (Input.GetKeyDown(KeyCode.L))
            {
                m_joint.EnableLimit(!m_joint.IsLimitEnabled());
            }

            if (Input.GetKeyDown(KeyCode.M))
            {
                m_joint.EnableMotor(!m_joint.IsMotorEnabled());
            }
        }
예제 #2
0
        /// <inheritdoc />
        /// <inheritdoc />
        public override void OnKeyDown(KeyInputEventArgs keyInput)
        {
            if (keyInput.Key == KeyCodes.L)
            {
                m_joint.EnableLimit(!m_joint.IsLimitEnabled());
            }

            if (keyInput.Key == KeyCodes.M)
            {
                m_joint.EnableMotor(!m_joint.IsMotorEnabled());
            }
        }
예제 #3
0
        /// <inheritdoc />
        /// <inheritdoc />
        public override void OnKeyDown(KeyboardKeyEventArgs key)
        {
            if (key.Key == Key.L)
            {
                m_joint.EnableLimit(!m_joint.IsLimitEnabled());
            }

            if (key.Key == Key.M)
            {
                m_joint.EnableMotor(!m_joint.IsMotorEnabled());
            }
        }
예제 #4
0
        protected override void OnKeyDown(KeyEventArgs e)
        {
            if (e.KeyCode == Keys.L)
            {
                _joint.EnableLimit(_joint.IsLimitEnabled());
            }

            if (e.KeyCode == Keys.S)
            {
                _joint.EnableMotor(false);
            }
        }
예제 #5
0
        /// <inheritdoc />
        protected override void PreStep()
        {
            DrawString("Keys: (l) limits, (m) motor");
            if (Input.GetKeyDown(KeyCode.L))
            {
                m_joint.EnableLimit(!m_joint.IsLimitEnabled());
            }

            if (Input.GetKeyDown(KeyCode.M))
            {
                m_joint.EnableMotor(!m_joint.IsMotorEnabled());
            }
        }