Babylon.js
Only drag the grid horizontally
Questions
lp920133349
January 8, 2020, 4:05pm
1
image
1920×888 71.7 KB
This model has three axes, the X-axis, the Y-axis and the z-axis, that you can drag, but I just want to drag the model in a plane, so I just want to drag the X-axis and the z-axis, and I want the Y-axis to be undraggable, what do I do
RaananW
January 8, 2020, 4:51pm
2
Hi,
you can use two axis gizmos:
https://www.babylonjs-playground.com/#31M2AP#81
lp920133349
January 9, 2020, 1:39am
3
Thanks a lot. You solved my problem
Related topics
Topic
Replies
Views
Activity
PointerDragBehavior with two dragAxis
Questions
2
1155
December 11, 2018
Constrain dragging to Y axis for BoundingBoxGizmo?
Questions
3
615
September 9, 2022
How to set up when dragging mesh using SixDofDragBehavior, only change the position of x and z axes, but not the position of y axis
Questions
2
168
April 9, 2024
BoundingBoxGizmo drag behavior
Questions
13
1427
April 7, 2021
PointerDragBehavior to drag in X, Y or Z
Questions
5
890
September 8, 2021