Rotation Gizmo Snapping Bug


#1

Hello,

I was using gizmo and set snap distance to Pi/4. What I realized was that on positive direction, gizmo snaps to Pi/4, on negative direction it snaps to Pi/8.

I’m not sure if it is really a bug but I was able to replicate it in pg: https://www.babylonjs-playground.com/#31M2AP#45 .

If this is not a bug or if there is some workarounds you can suggest I would appreciate,

If this is a bug I’m glad I reported it.


#2

Adding @trevordev (It looks like Christmas for Trevor :slight_smile: )


#3

@mkadirtan thanks for reporting, PR with fix is here: snap correctly in the negative direction by TrevorDev · Pull Request #5699 · BabylonJS/Babylon.js · GitHub


#4

Thanks a lot!!