Hello,

I’m trying to a project where there is an interaction with a 3d object and the user, and the interaction being when the user moves/clicks his mouse the vertices of the object move randomly.

The project is still in a ealry stage but I already encountered a problem.

So we used a “for” to create a random deslocation in the values between -10 and 10 and in the axis of x,y,z.

The problem is that in the console the vertices of the object are always changing but in the preview they aren’t.

Is there a way to fix this issue?

```
let a, obj3D;
function preload()
{
obj3D = loadModel ("bob3.obj", true);
}
function setup()
{
createCanvas (windowWidth, windowHeight, WEBGL);
a = 0;
//console.log (obj3D.);
}
function draw()
{
for (let v=0; v<obj3D.vertices.length; v++)
{
obj3D.vertices[v].x += random (-10, 10);
obj3D.vertices[v].y += random (-10, 10);
obj3D.vertices[v].z += random (-10, 10);
}
console.log (obj3D.vertices[0].x);
background (30);
push();
translate (0, 0, 0);
scale (2);
rotateX (radians(a));
rotateY (radians(a));
rotateZ (radians(a));
stroke (255);
noFill();
model (obj3D);
pop();
if (a < 360) a += 0.9;
else a = 0;
}
```

Link for the project:

https://editor.p5js.org/miguelbarros999/sketches/wjRdQbrU8

Thanks in advance