Physically-Based Bullet Impact Effects | Unity Tutorial

Опубликовано: 17 Август 2021
на канале: LlamAcademy
19,126
316

Learn how to implement simple RigidBody projectiles (bullets) that have unique impact effects based on the material of the object they hit! This adds a lot of realism into your game by having customized particle systems coming out of stone, metal, living organisms, water, dirt, grass, etc...
We'll also have a default impact effect play if we didn't specifically map a material so we can guarantee a hit effect will play even if we didn't explicitly map that material to a unique particle system.

💸 Ongoing sales 💸
⚫ See all active asset sales on the Asset Store: https://assetstore.unity.com/?on_sale...
⚫ Save 25% off your first Asset Store Order: https://prf.hn/click/camref:1101l9QvC...
⚫ Save up to 50% on NEW Assets: https://assetstore.unity.com/?new_sal...

👨‍💻 As always, all code from this video is available on GitHub: https://github.com/llamacademy/bullet...

📚 Videos Referenced in this Video:
⚫ AI Series Part 1 - Click to move in PlayerMovement -    • NavMesh Basics - Introduction to the ...  
⚫ ObjectPooling Introduction -    • Introduction to Object Pooling in Uni...  

❤ Believe in LlamAcademy's mission and have received value from the videos? Become a Patreon Supporter or YouTube Member:
⚫ Patreon:   / llamacademy  
⚫ YouTube Member:    / @llamacademy   or click the Join button on any video

----
Most tutorials come from knowledge gained making https://survival.llama.software Llama Survival - a top-down zombie survival shooter for Android and iOS.
I also have some Unity Assets (affiliate link): https://assetstore.unity.com/publishe...
Some links may be affiliate links, which at no additional cost to you, gives me a small portion of the purchase.

#unitytutorial #tutorialtuesday #gamedev #tutorial #unity #llamacademy #gamedevelopment #projectiles #vfx

Chapters:
00:00 Introduction
01:57 Scene Overview - Script Creation
03:20 PlayerMovement.cs - Look at Mouse
03:54 Demo - Player Movement
04:21 Bullet.cs - Variables and Initialization
06:04 Bullet.cs - Collision
07:57 PlayerAction.cs - Shoot Bullets
09:30 Bullet, Particle System, and Player Setup
11:08 Demo - Bullets with 1 impact effect
11:27 Import Unity Particle Pack
12:20 Add Material Variation to Scene
12:55 BulletImpactManager.cs
16:12 Bullet.cs - Use BulletImpactManager
17:00 Setup BulletImpactManager
17:34 Demo - Bullets with customized impact effects
18:16 Closing


Смотрите видео Physically-Based Bullet Impact Effects | Unity Tutorial онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь LlamAcademy 17 Август 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 19,126 раз и оно понравилось 316 людям.