Alignment functions (e.g., snapping, gravity)