Hi, I am trying to rotate a list of vectors and was wondering how I can go about doing this.
So I create a circle like this:
(a, b, z) = (0,0,0) #position of circle
vertices = []
radius = 0.8 # circle radius
for angle in range(0, 360, 60):
print(angle)
radians = math.radians(angle)
x = a + radius * math.cos(radians)
y = b + radius * math.sin(radians)
vertices.append( (x,y,z))
Is there a way I can translate the circle all while rotating the circles direction towards that same translation vector?
I am trying to achieve this old method which uses a real circle with vertices(worked fine but a bit of performance lag) so I’d like to switch to GPU shader. The vertices are assigned as the Draw shader “pos”