Skip to main content
Move or rotate an existing useIkController target from keyboard input. This hook is robot-agnostic: it edits the IK target, then the normal IK solver writes controls for whichever joints and actuators the controller owns. Use useKeyboardTeleop when keys should write actuator values directly. Use useKeyboardIkTarget when keys should behave like a keyboard-driven gizmo. This hook is optional. Applications can still provide their own keyboard hook, custom IK solver via ikSolveFn, or plugin-style controller component that uses useBeforePhysicsStep, useMujoco, and IkContextValue directly.

Usage

Config

Binding

code uses KeyboardEvent.code, such as KeyW, ArrowUp, or Space.