Not looking for an implementation to the problem (although that would be good :P), mainly looking to be pointed in the right direction for solving it.
Basically, I want to have various game objects following a single game object, using rigidbody.AddForce()
. This is to allow for realistic physics simulations as collisions will be a key part of this and using anything but rigidbody.AddForce()
doesn't really allow for it.
I have been working on implementing this, but the GameObjects which are following always tend to overshoot their target, or they can't quite stop in time when applying reverse force to slow them.
As I've said, I'm mainly looking to be pointed in the right direction, be it some mathematical formulae that I require, or another method that I am overlooking. With that said, a very simple implementation to build-on would be awesome.
All help is greatly appreciated!
Thanks!