How to rotate a gltf model in a specific direction

No problem at all. :slightly_smiling_face:

Perhaps it would help to look at some basic examples.

There are a few that fit.
Collection of examples from discourse.threejs.org


With this enhancement the lady moves additionally sideways.

let model, c, size; // model center and size
let t = 0;
let x0 = xPosition;
let dx;

animate();

function animate( ) {
	
	requestAnimationFrame( animate );
	yRotation += 0.005;
	
	t += 0.001;
	dx = Math.sin( t )
	
	xPosition = x0 +  dx;
	
	move( model );
	renderer.render( scene, camera );
	
}
1 Like