How to animate a conveyor belt along an axis?

I want to animate an object3D like conveyor belt animation but while i am rotating it along X axis it’s rotating around a point and not like conveyor belt.

I am using the code like below
let belt =conveyor.scene.getObjectByName(‘Product8’);
belt.position.set(-31.118, -11.868, 36.458);
belt.children.forEach(object => object.position.set(31.118, 11.868, -36.458));
belt.rotation.x = 0.5;

and it’s looks like

Please help me. Thanks in advance.

Hi!

Maybe better to move a texture? Edit fiddle - JSFiddle - Code Playground

изображение

4 Likes