I move my gameobject between waypoints/breadcrumbs by alterning its rigidbody2D’s velocity like this:
this.rigidbody2D.velocity += acceleration;
this.rigidbody2D.velocity = Vector2.ClampMagnitude(this.rigidbody2D.velocity, this.speed);
Then, when it gets to the last waypoint/breadcrumb I do this:
this.rigidbody2D.velocity = Vector2.zero;
this.rigidbody2D.angularVelocity = 0.0f;
this.rigidbody2D.Sleep();
I’ve also set sleeping velocity in project’s physics properties to 0.
Even though I did all of this - my objects still moves at some really small velocity.
What should I do to stop it completely?