How to rotate arrow to trajectory

i have a protectory and i want to rotate the arrow to follow where its moving

clone:ApplyImpulse((direction).Unit * ((heldTime + 0.5) * 500))
1 Like

Why don’t you use CFrame.LookAt for this?

1 Like

its not a straight line, its a curved trajectory

1 Like

Have you tried CFrame.LookAt each point, like looping it? Maybe using Heartbeat

1 Like

You can use CFrame.Lookat and make the arrow point towards (position+velocity), maybe.

arrow.CFrame = CFrame.lookat(arrow.Position,arrow.Position+arrow.AssemblyLinearVelocity)
1 Like

If you don’t feel comfortable CFraming something that’s controlled by physics then I would use AlignOrientation instead with the same idea

1 Like

yeah, that works too. i don’t have that much experience with allignposition; that’s why i recommended cframing.

1 Like

attempt to call a nil value?

Heartbeat:Connect(function()
		clone.CFrame = CFrame.lookat(clone.Position, clone.Position + clone.AssemblyLinearVelocity)
end)
1 Like

i wrote this directly in the devforum, i may’ve made a mistake. lookat in cframe might need to have a few capital letters here and there. check the documentation to fix everything up

1 Like

It takes 3 parameters


, like I said in my previous suggestion similar to yours, he should constantly update the orientation via the position using runservice

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.