Videos

[Video] Unleash the Power of Raycasts with Dot Product

This Unity tutorial will show you how to dramatically improve your raycasts using the dot product of two vectors.

Unity’s built-in Raycast function is an extremely valuable tool. It allows you to cast a ray into the scene and determine whether or not it collides with anything. This is useful for common mechanics such as line-of-sight and collision detection.

But sometimes Raycast can be too precise, and using it can result in an unresponsive feel for the player. Luckily, we can use the dot product in cases like this to simply determine whether or not a ray is close to a target.

This unity tutorial uses basic object selection as an example to demonstrate how powerful this simple algorithm can be.

Learn more about Dot Product at https://betterexplained.com/articles/vector-calculus-understanding-the-dot-product

📦 Download the project at https://www.patreon.com/posts/27222309

Videos

[Video] Learn By Example – SOLID Principles in Unity (Part 2)

In this Unity tutorial, you’ll learn how to use the SOLID Principles through a simple example.

You don’t have to be an expert to write clean code. It just takes a little practice and discipline. The SOLID Principles are a set of 5 design principles that you can follow to write better code.

Follow along with this Unity tutorial to see the SOLID principles being used in a real-world example.

📦 Download the example project files here
❓ Got a Question? Check out this video’s Q&A here

Videos

[Video] Learn By Example – SOLID Principles in Unity

This Unity tutorial will show you how to use the SOLID principles to write code that’ll stand the test of time.

How many times have you abandoned a game because the project became a big pile of spaghetti code? You aren’t alone! Believe it or not, one of the leading causes of unfinished games is poorly written code.

But you’re in luck! This Unity tutorial will show you how to use the SOLID principles to write code that’s more flexible, maintainable, and easier to understand.

The SOLID principles are a set of five design principles that you can follow to start becoming a better programmer. They take the guesswork out of writing good, clean code!

📦 Download the example project files here

Videos

[Video] Selecting Object with Raycast – Unity Tutorial

This Unity tutorial will teach you how to select objects using raycasts by walking you through a simple example.

Ray Casting (or raycasting) is the process of using an invisible ray in order to solve a variety of problems in game development, such as intersections and collisions. This tutorial covers the ScreenPointToRay method which is one of a few ways to cast rays in Unity.

This tutorial was created in part with Jason Storey (apieceoffruit). Learn more about Jason by visiting http://www.firepanda.co.uk

📦 Download the example project here