TL;DR: Rocket can get stuck circling around target. Help.
Hey there!
I’ve been working on making a rocket launcher, with the help of this post.
Instead of flying in a straight line to the target, I have the rocket initially fly straight out of the barrel and then curve toward the target.
Consequentially, it can get stuck flying around the target if it does not have enough time to turn towards it.
Note that I’m using a LinearVelocity
to make the rocket fly, and an AlignOrientation
to make it curve toward the target.
I’ve tried:
-
Reading docs and searching forums
-
Increasing and decreasing AlignOrientation’s MaxAngularVelocity, MaxTorque, and Responsiveness
Higher values help to a certain extent. Again, I want it to curve. There is a limit to how high I can set them before the rocket snaps to it’s target orientation and then flies in a straight line. -
Increasing and decreasing LinearVelocity’s VectorVelocity
Lower values give the rocket more time to turn, but there is such a thing as too slow. -
Using magnitude to implement the distance between the rocket and target into the turn speed
I’m really stuck on this one and would appreciate any help.
Let me know if you want any of the scripts.