pointer position
This commit is contained in:
parent
107a5f03af
commit
a3a5868979
|
@ -182,13 +182,14 @@ const loadModels = async () => {
|
|||
|
||||
const point = point_mesh_obj.clone()
|
||||
const point_color = new Color(envVars.clear_color).offsetHSL(0.45, 0.2, 0)
|
||||
// console.log(point_color)
|
||||
point.traverse((el: Group | Mesh) => {
|
||||
if (el instanceof Mesh && el.material && el.material instanceof MeshStandardMaterial) {
|
||||
el.position.set(0, 0, 0)
|
||||
el.material.color = point_color
|
||||
}
|
||||
})
|
||||
point.position.set(world_position.x, size.y, world_position.z)
|
||||
point.position.set(world_position.x, world_position.y, world_position.z)
|
||||
console.log(world_position)
|
||||
|
||||
point.updateMatrixWorld()
|
||||
point.name = `${element.id}_clickable`
|
||||
|
|
Loading…
Reference in New Issue