Maybe they should add a maximum distance it can go before stopped?
If you mean ScreenGUi, it’s a great idea, possibly for the future. We’ve thought about it enough to know that there would be several ways to do this; so it would require some thought and design.
That is such an awesome feature! I already have so many ideas what to do with it.
When you are in first person view, you both move the camera and drag the object when you press and drag. But even so, all that I say below should be true and hopefully helpful:
By default, the DragStyle is TranslatePlane, and axis (i.e. normal to the dragPlane) is going to be theY axis.
You can change your DragStyle to TranslateViewPlane, and it will always move in the viewplane.
Or if you want to move in a specific different plane, you can set your referenceInstance to be a part, model, or attachment, and set the DragDetector.Axis to be a different value. The plane you drag in will be normal to the Axis of the referenceInstance’s coordinate system.
Also, you just want to lift vertically, you can change DragStyle to TranslateLine and it will move ALONG that Y axis.
Lastly, TranslatePlaneOrLine, or TranslateLineOrPlane, will let you switch between the two using the control key. The key you use may be customzied with DragDetector.KeyboardModeSwitchKey
That would be a property of the part itself. In the property pane you can set custom physical parameters, and that is where you can customize friction.
You can set the MinDragTranslation and MaxDragTranslation. If any dimension has max > min, then motion will be confined within that range. We are hoping that this is enough and we don’t need to add a mmaximum distance.
But this only while dragging; if it’s non-anchored and you fling it, that’s different.
Roblox back at it again with good studio updates!
Thank you! We’re looking forward to how this will be used by the community
pretty interesting and unexpected addition, lots of stuff to do with this!
cool addition! i will 100% find a way to use this.
I may replace my Puzzle Dungeon room manipulation GUI’s with real parts using this. I love it!
This is an incredibly unexpected but awesome update!
I feel the drag detector will make others experiences feel more interactive as this is an easily accessible feature!
Great work!
This is actually really cool. Nice to see this feature added.
Oh wow, a good Roblox Studio update. Haven’t seen one of those in a while.
I like this update, however, does it move the camera if your interacting with a DragDetector on mobile?
Any way we can use it with GUIs? (or maybe its already the case and im completely lost)
Okay, you want catapults…
A few of us worked on a game called “Projectile Madness.”
Keep in mind the game is really rough and janky, not ready for prime time.
But we each made a weapon to hurl things at targets, and they should provide you with some fun and fodder. There is my “Plunger Pull,” @itsfrank17 's totally amazing “Catapult,” @idevride 's “Spring Launcher,” and @jinkiesSc00b’s “Wrecking Ball.”
It should be open for you to copy and download. Make better weapons than we did please!
On mobile devices:
- Clicking the thumbstick area/control, jump button, or other UI elements will work, even if a DragDetector is behind them and below the cursor. (And the DragDetector will NOT move)
- Clicking a DragDetector in the camera area will move the DragDetector and NOT the camera
- Otherwise, clicking in the camera area moves the camera
Thank you for your answer, it’s nice that you’re taking your time to answer to everyone.
See other comments: DragDetectors don’t work with Screen GUIs,. It’s a great idea, but will require further thought to get it right.