Box draging x-z rotation but box draging x,y,z when change y rotation

Hello. I wanted to tell you about a simple problem that I couldn’t find a solution to. I have a draggable ball on the screen. This ball moves only in the x and z axis. This is how I set it up but when my ball’s y rotation changes, my ball also moves in x - y and z rotation. I don’t want it to move in y rotation. Please help me.

Babylon.js Playground (

I found the solution.

Babylon.js Playground (

pointerDragBehavior.useObjectOrientationForDragging = false;

1 Like