Добавить
Уведомления

Entity interaction using OverlapSphere and ComponentLookup in Unity ECS 1.0

In this video, we start implementing the fundation of the combat system. We will use the OverlapSphere of the #unity #ecs #physics package to find the closes entity and the ComponentLookup concept to interact with it. VERSION ---------------------------------------------------------------------------------------------------------------- Unity : 2022.2.0b13 Packages : - "com.unity.entities.graphics": "1.0.0-exp.14" - "com.unity.physics": "1.0.0-exp.12" - "com.unity.inputsystem": "1.4.4" SOURCE CODE & FOLLOW ALONG CONTENT ------------------------------------------------------------------------------------------------------------------ Starting repo : https://github.com/WAYN-Games/DOTS-Training/tree/DOTS-110 Gist : https://gist.github.com/WAYN-Games/de0acbf4e0d74504933cc7a72dd83f09 Ending repo : https://github.com/WAYN-Games/DOTS-Training/tree/DOTS-111 CHAPTERS ------------------------------------------------------------------------------------------------------------------ 00:00 -- Intro 00:55 -- OverlapSphere vs SphereCast vs RayCast 01:45 -- Prevent multiple tower in same place using OverlapSphere 02:43 -- Fix tower of tower with Collission Layers 04:15 -- Spawning Projectile (Gist Fast Track) 05:45 -- Find closest Enemy (OverlapSphere & ClosestHitCollector) 06:15 -- Get target Enemy postion (ComponentLookup readonly) 07:40 -- Dealing damage and killing Enemies (ComponentLookup read/write) 08:38 -- Collision & Trigger Events (teaser) 09:10 -- Outro SOCIAL ------------------------------------------------------------------------------------------------------------------ ? Subscribe : https://wayn.games/youtube ? Chat : https://wayn.games/discord ? Support : https://wayn.games/patreon ? React : https://wayn.games/twitter ? Ressources : https://wayn.games/github #DOTS #Course #tutorial #unity3d #unitytutorials #gamedev #entitycomponentsysstem #dataorientedtechnologystack #madewithunity #lookup #overlap

12+
20 просмотров
2 года назад
4 декабря 2023 г.
12+
20 просмотров
2 года назад
4 декабря 2023 г.

In this video, we start implementing the fundation of the combat system. We will use the OverlapSphere of the #unity #ecs #physics package to find the closes entity and the ComponentLookup concept to interact with it. VERSION ---------------------------------------------------------------------------------------------------------------- Unity : 2022.2.0b13 Packages : - "com.unity.entities.graphics": "1.0.0-exp.14" - "com.unity.physics": "1.0.0-exp.12" - "com.unity.inputsystem": "1.4.4" SOURCE CODE & FOLLOW ALONG CONTENT ------------------------------------------------------------------------------------------------------------------ Starting repo : https://github.com/WAYN-Games/DOTS-Training/tree/DOTS-110 Gist : https://gist.github.com/WAYN-Games/de0acbf4e0d74504933cc7a72dd83f09 Ending repo : https://github.com/WAYN-Games/DOTS-Training/tree/DOTS-111 CHAPTERS ------------------------------------------------------------------------------------------------------------------ 00:00 -- Intro 00:55 -- OverlapSphere vs SphereCast vs RayCast 01:45 -- Prevent multiple tower in same place using OverlapSphere 02:43 -- Fix tower of tower with Collission Layers 04:15 -- Spawning Projectile (Gist Fast Track) 05:45 -- Find closest Enemy (OverlapSphere & ClosestHitCollector) 06:15 -- Get target Enemy postion (ComponentLookup readonly) 07:40 -- Dealing damage and killing Enemies (ComponentLookup read/write) 08:38 -- Collision & Trigger Events (teaser) 09:10 -- Outro SOCIAL ------------------------------------------------------------------------------------------------------------------ ? Subscribe : https://wayn.games/youtube ? Chat : https://wayn.games/discord ? Support : https://wayn.games/patreon ? React : https://wayn.games/twitter ? Ressources : https://wayn.games/github #DOTS #Course #tutorial #unity3d #unitytutorials #gamedev #entitycomponentsysstem #dataorientedtechnologystack #madewithunity #lookup #overlap

, чтобы оставлять комментарии