unity-movement-ai
unity-movement-ai copied to clipboard
the CollisionAvoidSensor get wrong position with the ScreenBoundary
the CollisionAvoidSensor get wrong position when a Unit reach a boundary and reposition the opposite side.
you should fix the "KeepInBound" method which is in the ScreenBoundary script. set the new position to the Rigidbody instead of the Transform.