my space ship children are oscillating and I can't get them to stop...
@mickmaus and the trouble with spacedamping is that it evaporates so quickly.
@oneiro they've been painting their ships purple and teal and i dont think they give a fuck about the rules no more https://witches.town/media/nJfHymI4UE9GrZkNzhA
@mickmaus are you making a follow controller? i don't have much experience with gamedev, but i know some controls if that'd be useful :p
@oneiro yeah, they're supposed to slow down and stop once they get 'bored' of following, but for some reason they oscillate?
if their current motion vector is > 1 they push controls to the opposite of the vector, so you'd think at some point they'd be moving slower than 1? Their max speed is 2 anyways?
@mickmaus hmm, I don't quite understand the framing of your scalar motion vector, but a guaranteed-stable solution is to have them be pushed towards the current position of the target by a PD controller, where the force = Kp * (current distance) + Kd * (change in distance since last frame)
@mickmaus if that's too robotic, adding an integral gain will make it smoother
@mickmaus how indiscrete