Город МОСКОВСКИЙ
00:04:52

How to Generate Colliders for Line Renderers | Unity Tutorial

Аватар
Погружение в JavaScript
Просмотры:
26
Дата загрузки:
04.12.2023 15:39
Длительность:
00:04:52
Категория:
Обучение

Описание

Learn how to dynamically generate a collider that follows your Line Renderer regardless of shape or size of your Line Renderer! In this tutorial I cover how to add a new Mesh Collider component to your Line Renderer GameObject and generate a mesh at runtime that matches your Line Renderer!

It's easier than you might think!

You'll also learn how to simplify your line renderer's points based on a tolerance in code, just like you see in the inspector! This helps keep your generated collider optimized!

As always, all code from this video is available on GitHub: https://github.com/llamacademy/line-renderer-collider

? Let's stay connected
YouTube: https://youtube.com/c/LlamAcademy
Patreon: https://www.patreon.com/llamacademy
Facebook: https://facebook.com/LlamAcademyOfficial
Twitter: https://twitter.com/TheLlamAcademy
TikTok: https://tiktok.com/@LlamAcademy
Instagram: https://instagram.com/LlamAcademy

----

Believe in LlamAcademy's mission and have received value from the videos? Consider becoming a Patreon supporter: https://www.patreon.com/llamacademy

----
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/publishers/22409?_aid=1101l9QvC

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

Chapters:
00:00 Topic Introduction
00:57 Scene Overview
02:00 Generate Collider from LineRenderer in LineRendererSmoother.cs
03:20 Simplify Line Renderer Points
03:48 Demo & Closing

Рекомендуемые видео