i have mesh want rotate 90 degrees inside 3 js. here image of current situation:
i want selected mesh rotated parallelly large mesh. have tried rotating matrix this:
matrix = new three.matrix4().makerotationx(1.57)
but mesh goes strange rotations. there easier way rotate 90 degrees ?
the threejs rotation uses radians (as might know)
you can use this
mesh.rotation.x = math.pi / 2;
or
mesh.rotation.set(new three.vector3( 0, 0, math.pi / 2));