Aiming System


When picking up an item by running onto the mystery item box, some of it can be a gun that will be set onto an empty game object that’s attached on the car. When grabbing a weapon item, I implemented in such a way that it triggers the display for a crosshair to appear. That all worked seamlessly well but making the weapon follow that crosshair became a slight issue. The weapon wasn’t accurately following the crosshair and was slightly off when aiming. This issue would impact the mouse and keyboard users that will play our game. Another issue that might arise will be an auto aiming-system that will make the weapon aim for the nearest opponent racer.

The solution to my first issue was to fix calculations as my math was slightly off but then the aiming was inverted. So using an inverse of the rotation helped fix that problem. The main issue will be getting the auto aim system working. But, a solution to that could be adding a cone shaped collider in front of the car that will pick up things in front of it. From there, I can point the front of the gun towards that respective position. This will help controller players alot, so that the game doesn’t feel unfair to them.

Published by: Anario Sanchez

Get BlazeRunners : Bullet Ballet

Download NowName your own price