Raycasting

Raycasting involves sending out a ‘ray’ and finding out what it hits. Raycasting is used by game developers to find the distance between players and another object, aiming, detecting nearby …

Collision detection in Unity

Collision So what is collision? Collision is knowing when one object has come into contact with another object. In this tutorial, we will look at collision detection, the Rigidbody component, …

Mouse input in Unity

This tutorial explains how to detect mouse button clicks and mouse movement in your game using a C# script. This will allow your players to interact with the game using …