Rive 101 logoRive 101
About📋 Changelog
0%
Progress0/88
5.5

Joysticks

8m 09sPartial+1 changes
Rive 101 - Joysticks
  • Core Educational Objective: Understand the inner mechanics of Rive Joysticks, learning how to map multi-axis independent timelines to the Joystick's X and Y paths to achieve non-linear, multi-dimensional motion blending.
  • Background Pain Points: When crafting omnidirectional animations like eye-rolling or facial turning, traditional linear timelines struggle to handle diagonal mixing, usually forcing designers to manually plot tons of redundant keyframe paths for every corner.
  • Final Business Benefit: By using Joysticks, designers only need to keyframe the extreme linear paths (pure horizontal and pure vertical movements). The system adaptively recalculates and interpolates compound movements based on the handle's percentage coordinates, lowering rigging complexity and delivering responsive touch assets for runtimes.
  • The Joystick Non-Overlap Rule: This is a vital baseline for engineering advanced rigging controllers in Rive. A timeline assigned to the Joystick's X-axis must never contain keyframes regulating Y-axis properties, and vice-versa. Violating this rule introduces matrix locking bugs, forcing the runtime engine to render the targeted properties completely motionless due to lane channel conflicts.
  • Two-Dimensional Interpolation Formula: The joystick behaves as an adaptive, non-linear interpolation computer. Given active handle coordinates mapped as percentages (p_x, p_y), paired with targeted timeline durations symbolized as T_x and T_y, Rive dynamically solves:
Current_Frame_x = p_x · T_x
Current_Frame_y = p_y · T_y

It then merges the non-conflicting spatial transforms cleanly in runtime matrix space.

  • Draw in World Space Optimization Benefits: Enabling world-space drawing links the controller's spatial size with its structural parent matrix (such as a Nested Artboard layout). This offers optimization value when building highly responsive multi-resolution UI components or mapping complex micro-rig configurations.
  • Artboard Controller Caps: Designers can chain a theoretically infinite volume of independent joysticks onto a single Artboard layout. The only hard runtime performance constraint is ensuring that no two joysticks ever fight over the same underlying layer parameter matrices.
Some content differs from current version1 changes
2024.11Joystick fix

Fixed not advancing when sole component.