#Draw a Plane facing a Ray

3 messages · Page 1 of 1 (latest)

hasty yarrow
#

I'm sorry for asking what seems a very simple question, but the American education system failed me and I don't even have the words to ask for what I need properly

I'm drawing a line say .. x:0, y:0, z:0 => x:1, y:2, z:3
At x:1, y:2, z:3 I want to draw a plane/flat square/circle that faces the line in so that the line is directly in the center of the object

I would be so grateful for an answer for this

stark iris
#

the best thing you can do is mess around in a live editor like jsfiddle or codesandbox

#

that said, if you have a line from A to B,
you can probably do planeMesh.position.copy(A)
and planeMesh.lookAt(B.x, B.y, B.z)