{
while (true) {
const topBounds = new THREE.Vector3(0, 2, 0);
const top = intersects(topBounds, originPoint);
yellowPoint.position.set(top.x, top.y, top.z);
const bottomBounds = new THREE.Vector3(0, -2, 0);
const bottom = intersects(bottomBounds, originPoint);
purplePoint.position.set(bottom.x, bottom.y, bottom.z);
const leftBounds = new THREE.Vector3(-2, 0, 0);
const left = intersects(leftBounds, originPoint);
fuchsiaPoint.position.set(left.x, left.y, left.z);
const rightBounds = new THREE.Vector3(2, 0, 0);
const right = intersects(rightBounds, originPoint);
olivePoint.position.set(right.x, right.y, right.z);
const frontBounds = new THREE.Vector3(0, 0, 2);
const front = intersects(frontBounds, originPoint);
orchidPoint.position.set(front.x, front.y, front.z);
const backBounds = new THREE.Vector3(0, 0, -2);
const back = intersects(backBounds, originPoint);
springPoint.position.set(back.x, back.y, back.z);
importedObj.rotation.z += 0.01;
renderer.render(scene, camera);
yield null;
}
}