Back to Browse

Entity interaction using OverlapSphere and ComponentLookup in Unity ECS 1.0

5.3K views
Nov 27, 2022
9:22

💰 Support : https://wayn.games/ko-fi 👍 Support https://wayn.games/assetstore-affiliate In this video, we start implementing the foundation of the combat system. We will use the OverlapSphere of the #unity #ecs #physics package to find the closest entity and the Component Lookup 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 ------------------------------------------------------------------------------------------------------------------ 💬 Chat : https://wayn.games/discord 🐦 React : https://wayn.games/twitter 📝 Ressources : https://wayn.games/github #DOTS #Course #tutorial #unity3d #unitytutorials #gamedev #entitycomponentsysstem #dataorientedtechnologystack #madewithunity #lookup #overlap

Download

0 formats

No download links available.

Entity interaction using OverlapSphere and ComponentLookup in Unity ECS 1.0 | NatokHD