Load texture on coin/circle

If the scene is not rendering, there is probably some error messages in your browser console.

coin.vertices.push(
new THREE.Vector3(new THREE.Vector3(0, 0, 0)),
new THREE.Vector3(new THREE.Vector3(x r, 0, z r)),
new THREE.Vector3(new THREE.Vector3(x1 r, 0, z1 r))
);

Ok at first I thought you tried to ommit multiplication symbols in your code, but it seems it’s a formatting function of this forum that happens when it is next to the thing to multiply. Add a whitespace on each side of the multiplication symbol. And use code formatting in this forum for code instead instead of quote block.

Why do you instantiate your Vector3 like this ?

new THREE.Vector3(new THREE.Vector3(0, 0, 0))

It should be

new THREE.Vector3(0, 0, 0)
1 Like