Rive 101 logoRive 101
β„Ή AboutπŸ“‹ ChangelogδΈ­
0%
Progress0/88
5.11

Distance Constraint

3m 18s
Rive 101 - Distance Constraint

The Distance Constraint establishes a specific physical distance relationship between two objects. It can be used to set a maximum, minimum, or exact distance, allowing objects to be dragged or pushed based on these spatial boundaries.

  • Interactive Physics: The Distance Constraint is ideal for simulating physical boundaries without complex coding, such as keeping a UI handle within its track.
  • Guide Visibility: The red circular guide is only an editor aid and will not appear in your final exported Rive file.
  • Target Dynamics: When the target moves, the constrained object will be "dragged" or "pushed" to maintain the rules of the selected mode.