Three.js line vector to cylinder?

后端 未结 9 1831
粉色の甜心
粉色の甜心 2020-12-14 23:53

I have this to create a line between 2 points:

var geometry = new THREE.Geometry();
geometry.vertices.push(new THREE.Vector3(0, 0, 0));
geometry.vertices.pus         


        
9条回答
  •  伪装坚强ぢ
    2020-12-15 00:21

    I found that only one point can be matched, so I edit it( change pointX to pointY) as below and it works

    edge.position = new
    THREE.Vector3().addVectors(pointY,direction.multiplyScalar(0.5));
    

提交回复
热议问题