Want to watch this Lesson?

Start a free 7-day trial today. It's quick - and you can cancel anytime.

Watch course trailer Start your Free Trial

Calculating Distance with Raycast

  • Software:Unity 5.0  ·
In this lesson we'll use a Raycast to determine the distance between two game objects. The raycast, once in contact with the ground, will then display the distance via a console message.