I am trying to rotate some objects so that they connect to each other to form a series of pipes, i want to conect (join) them.
pdt: im creating the objects from a 3d coordinates file,each coordinate is the starting point of each pipe.
I'm basically trying to connect points (coordinates) through pipes
i created the objects and
I managed to create the necessary objects for each pair of coordinates and was able to find the necessary distance to connect them (a simple vector difference), the only problem I have is that I can't rotate them correctly, any ideas?
Thanks in advance!!
code of the rotated objects (v = list of coordinates):
while i < len(v)-1:
var csgCil = csgTunel.instance()
var vecActual = Vector3(v[i+1]-v)
ax = vecActual.angle_to(vx)
ay = vecActual.angle_to(vy)
az = vecActual.angle_to(vz)