Hi,
I’m using a gizmo and having trouble limiting some behavior (stop moving position) and customizing the pull features (make spheres bigger).
My PG is here. Below is what I want to accomplish.
I want the gizmo to:
scale on corners / faces of gizmo ONLY no change in position on drag or rotate
increase / control size of pull tab spheres - with large geometry I can’t see pull tab / spheres.
I believe I have eliminated rotation with “gizmoManager.rotateDraggedObject = false” but can’t seem to stop dragging position even with false draggableMeshes, disableMovement, etc. Do I have to change the onPositionObservables? I can’t seem to find a built in method.
You can use scaleBoxSize to make the scaling controls bigger and use boundingBoxDragBehavior to disable dragging. And setEnabledRotationAxis("") disables rotation completely, thou IDK if it’s the best way to do it. https://www.babylonjs-playground.com/#DEYAQ5#136
I’m not sure to understand what you want. Do you want to use a bounding box gizmo with anchors to roate and scale the mesh?
scaling a mesh with a bounding box gizmo will always change its position unless the mesh pivot is on the opposite side of the scale.
Although the scaleBoxSize and rotationSphereSize aren’t working in my app outside of PG… I’ll hunt that down now. If there is a something common let me know.
Okay so tt seems that setting the boundingBoxDragBehavor=false throws the error below. This achieves the behavior (not dragging position - but I’m not a fan of throwing the error).