This page looks best with JavaScript enabled

Experimenting with Obstacle Avoidance in Unity 3D

 ·   ·  ☕ 1 min read

Lets explore building a self steering ship that can automatically move out of the way of obstacles in it’s path. This is a form of steering algorithm which is used to steer a object towards in objective, in our case we’ll be using it for obstacle avoidance.

This approach works by casting a number of rays in front of the ship which can detect obstacles in the way. Each ray provides a portion of the force in it’s direction, when the ray detects an obstacle the force it would apply is reversed.

Join the World of Zero Discord Server: https://discord.gg/hU5Kq2u


Sam Wronski
WRITTEN BY
Sam Wronski
Maker of things and professional software engineer. Lets make something awesome together!