Commit 9624e4e
committed
fix(SnapDropZone): prevent unwanted unsnap on leaving trigger collider
The Snap Drop Zone will automatically unsnap an object if it leaves the
trigger collider of the snap drop zone. However, this isn't always the
correct result. If the snap drop zone is using a joint snap and the
joint is set to infinity, then it would never be expected to break the
joint. Also, if the interactable object can only be dropped in snap
drop zones then forcing it out of the snap drop zone when it leaves
the trigger collider is also incorrect.1 parent 71bd8c1 commit 9624e4e
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
422 | | - | |
| 422 | + | |
423 | 423 | | |
424 | 424 | | |
425 | 425 | | |
| |||
444 | 444 | | |
445 | 445 | | |
446 | 446 | | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
447 | 452 | | |
448 | 453 | | |
449 | 454 | | |
| |||
0 commit comments