Skip to content

In this tutorial you will learn how to create trails on bullets using a TrailRenderer that can be configured on a bullet-prefab level

License

Notifications You must be signed in to change notification settings

llamacademy/bullet-trails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bullet Trails in Unity

In this tutorial you will learn how to create TrailRenderer bullet trails that can be configured on a Bullet level. This is an intentional design choice with the following assumptions:

  1. Your game you will have more than 1 gun.
  2. Each gun will have a different bullet prefab it shoots (different models/configurations).

This tutorial is not part of the AI Series since it's kind of a separate topic, but it's using 8 How to Make a Ranged Attacking Enemy as the foundation, with an auto expanding Object Pool that was implemented in AI Series Part 18 If you want to follow along with the below tutorial step by step, check out AI Series Part 8 and copy/paste the ObjectPool.cs from AI Series Part 18. If you just want the end result, you can clone this repository.

Youtube Tutorial

Patreon Supporters

Have you been getting value out of these tutorials? Do you believe in LlamAcademy's mission of helping everyone make their game dev dream become a reality? Consider becoming a Patreon supporter and get your name added to this list, as well as other cool perks. Head over to https://patreon.com/llamacademy to show your support.

Gold Tier Supporters

  • YOUR NAME HERE!

Silver Tier Supporters

  • YOUR NAME HERE!

Bronze Tier Supporters

  • Bastian
  • Jacob Martin
  • YOUR NAME HERE!

Requirements

  • Requires Unity 2019.4 LTS or higher.
  • Utilizes the Navmesh Components from Unity's Github.

About

In this tutorial you will learn how to create trails on bullets using a TrailRenderer that can be configured on a bullet-prefab level

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project