Constrain dragging to Y axis for BoundingBoxGizmo?

How do I constrain a boundingboxgizmo to only move in the Y axis with dragging?
I want to keep the scale and rotation working as-is.

Thanks,
Michael

cc @Cedric

There is no accessor for the dragbehavior but it’s possible to do this:

I take a note to add an accessor for it.

2 Likes

PR Giz misc by CedricGuillemet · Pull Request #12969 · BabylonJS/Babylon.js · GitHub

2 Likes