PlaneRotationGizmo Distorting Mesh

I’m trying to rotate meshes with the plane rotation gizmo and the meshes get extremely distorted. Just changing the z value for the axis to a 1 in the plane rotation example given by the playground example at and rotating the cube causes the cube to distort and expand.

Pinging @Cedric

Hi @Maximo_Turner

By changing the z value to 1, you mean ending up with a vector like this ?

new BABYLON.Vector3(0,1,1)

The normal of the plane must be normalized. You can normalize it like in this PG:

Ahhhh, I see, thank you!

Sorry, I’m pretty new to Babylon so still learning the basics

No worries :slight_smile:

Have fun with bablyonjs and don’t hesitate to ask questions!