# Obstacle avoidance with 2.5D game

I'm struggling to make the sprites avoid each other and other obstacles in the field. To achieve something like this:

To do so I decided to have a 3D environment with an Orthographic camera. It all looks as I wanted.

I have set up a plane. My sprites have a 3dCollider and a rigidbody as I want them to be affected by physics.

I move the sprites using RigidBody.MovePosition.

I checked the collisions, how far they where from their target position, etc...

I've tried also a few scripts that intend to do something like this, but I think they are not suitable from what I am doing as after adapting them they don't work.

Can somebody give me some guidance on a simple way to do this? I don't want to use a A* pathfinding system as I think it's too complex to what I want to do, but if I have to use one I will... I just need some guidance on this...

• RCTN uses a naïve solution. It sends troops in a direction, makes them collide and hope for the best – Bálint Feb 25 '17 at 14:00
• Without telling us what "a few scripts" are that you've tried, or in what specific way "they don't work," it's hard for us to diagnose what implementation issue you're experiencing. Try adding more detail to your question about the results you have so far and what specifically you want to improve/fix. (As an aside, I'm not sure why people get so wary about A*. It's one of the simplest and best-performing pathfinding algorithms known, and is extremely well-studied. What you're trying to do (avoiding moving obstacles) is in fact substantially MORE complex than what A* solves) – DMGregory Feb 25 '17 at 15:45