When mesh add Constraint,gizmo not control mesh

when add code line 130-136,gizmo not control mesh。
when comment code 130-136,gizmo control mesh

pointerDragBehavior.moveAttached = false;
    pointerDragBehavior.onDragObservable.add((eventData) => {
        console.log("eventData", eventData);
        for (let i = 0; i < attachableMeshes.length; i++) {
            attachableMeshes[i].moveWithCollisions(eventData.delta)
        }
    })

I need to understand what the 130-136 lines of code do for model drag and drop.

cc @Cedric if he has an idea

You are trying to mix 2 unrelated features. moveWithCollisions is not part of physics V2.
For the gizmo part, it’s also same as Mesh enable physics positionGizmo not control mesh move - #3 by Cedric

Please wait for an answer on 1 question before opening a new thread. Or use the same thread.

1 Like