Twelys
(Twelys)
April 8, 2022, 2:56pm
1
I have this cone
I have this projectile
I want to place this arrow at the end of each line of the projectile and then make it face the direction the line is going using the two points it has but im not sure what im doing wrong?
they are clearly not facing the direction of the line.
this is what i did
cone.CFrame = CFrame.lookAt(v[10],v[11],v[10])
v[10] being the end point of the line and v[11] being the starting point of the line
help?
Remove the third argument. Itâs optional and means âapproximately what direction should be âupââ
For your purposes that doesnât matter.
You may then need to rotate by +/-90 degrees on one axis:
cone.CFrame = CFrame.lookAt(v[10],v[11]) * CFrame.Angles(-math.rad(90), 0, 0)
1 Like
Twelys
(Twelys)
April 8, 2022, 3:03pm
3
W
W
thanks it works. i didnât know thatâs how it worked cause i dont know how to read.