/// <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()); } }
/// <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()); } }
/// <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()); } }
protected override void OnKeyDown(KeyEventArgs e) { if (e.KeyCode == Keys.L) { _joint.EnableLimit(_joint.IsLimitEnabled()); } if (e.KeyCode == Keys.S) { _joint.EnableMotor(false); } }
/// <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()); } }