i been experimenting with dragdetectors and i have a dragging system set up that anchors when dragging for better physics
ive been getting crashes and by doin clinical studies of commenting each line of code and trying all the parameters i have found out that
if ur anchoring on dragstart and unanchoring on dragend with scriptable and runlocally on it just crashes immediately for no reason
it ONLY happens when i add part.anchored = true and part.anchored = false. only both
this may be because of my dragdetector settings or my map or sum but either way its a bug with dragdetector anchoring that causes crashing
for now, i’ll be using geometric instead of physical and not anchoring my objects
Expected behavior
it works normally up until i drop the object and pick it up again and then it crashes within a second
nah bro im only using events from dragdetectors. with ONLY anchoring it still crashes + it would timeout and only crash after like 10+ seconds of repeated loops
I have been able to reproduce this bug. It’s not your fault because I can repro with a simple script that should work.
As you mentione, you need scriptable + runLocally + this start/stop. But that should be perfectly legal.
Also @PlanetZYN I think there is a workaround for your problem.
If you just change your responseStyle to geometric without using your scripts to change the anchored property, the DragDetector should do what you want.
Geometric mode on an Anchored part, behind the scenes, will change the part temporarily to anchored while you drag it and put it back. You can even watch the property change if you keep the PropertyPanel open while you drag.
Let me know if this gets you past your problem.
But I will still try to fix this bug.
I"ve also found a fix for the crash today, but that will take a couple of weeks to work its way out to you, and I’m curious if using Geometric style fixes your bug.
ya using geometric fixes my bug. ive noticed tho that geometric doesnt provide the same movement as a physical anchored part. might jus be some timing issues
Thx for ur help