Drag And Slide! Push/Pull/Move/Rotate/Drag/Drop Objects With Constraints Easily!
Drag And Slide! Push/Pull/Move/Rotate/Drag/Drop Objects With Constraints Easily!
Unity Asset • Version 1.1 • Updated January 2nd 2024
Drag And Slide covers the interaction type that adventure games, point-and-click puzzles, and horror games lean on constantly: letting a player grab, slide, push/pull, or rotate a physical object, but only within limits you define. A drawer that only slides on one axis, a lever that only rotates through a fixed arc, a crate that can be dragged freely.
Beyond adventure and horror games, it's also a fit for escape-room style puzzle games, furniture or object customization scenes, and any interaction where a designer needs to lock movement to one axis or a fixed rotation arc without hand-writing constraint math for every object.
What's included
- Free drag-and-drop
- Single-axis push/pull with position constraints
- Single-axis rotation with angle limits
- Legacy and new Input System support
- Full source code, demo scene, manual and video walkthrough
Common questions
Can I limit an object to sliding on just one axis, like a drawer? Yes. Single-axis push/pull with configurable position constraints is one of the three core interaction modes.
Does it work with the new Input System, or only the legacy one? Both are supported, so it drops into existing projects regardless of which input setup they use.
Is the source code included, or is this a compiled black box? Full source code is included along with a demo scene, so constraints and behavior can be adjusted or extended for project-specific needs.
Demo Videos
Screenshots
Drag And Slide! Push/Pull/Move/Rotate/Drag/Drop Objects With Constraints Easily!
v1.1