i have a protectory and i want to rotate the arrow to follow where its moving
clone:ApplyImpulse((direction).Unit * ((heldTime + 0.5) * 500))
i have a protectory and i want to rotate the arrow to follow where its moving
clone:ApplyImpulse((direction).Unit * ((heldTime + 0.5) * 500))
Why don’t you use CFrame.LookAt for this?
its not a straight line, its a curved trajectory
Have you tried CFrame.LookAt each point, like looping it? Maybe using Heartbeat
You can use CFrame.Lookat and make the arrow point towards (position+velocity), maybe.
arrow.CFrame = CFrame.lookat(arrow.Position,arrow.Position+arrow.AssemblyLinearVelocity)
If you don’t feel comfortable CFraming something that’s controlled by physics then I would use AlignOrientation instead with the same idea
yeah, that works too. i don’t have that much experience with allignposition; that’s why i recommended cframing.
attempt to call a nil value?
Heartbeat:Connect(function()
clone.CFrame = CFrame.lookat(clone.Position, clone.Position + clone.AssemblyLinearVelocity)
end)
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
It takes 3 parameters
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.