GridVids
Sign in with YouTube

Battle Simulation Basic Setup - Unity ECS/DOTS

Forging Station Jan 9, 2021 10:44
Create an account to hide videos, mark them watched, or save them to Don't Miss.
Don't Miss
Create an account to hide videos, mark them watched, or save them to Don't Miss.
Mark watched
Create an account to hide videos, mark them watched, or save them to Don't Miss.
Hide
Open in popup Open on YouTube
Share video

Share video

Copy the GridVids link or iframe code.

Video link
Iframe code
Iframe content

In this video we are going to setup an DOTS-ECS based basic battle simulation system. I was very impressed by the Nordius demo from Unity showcasing the brand new C# job system. I decided to build a battle system from scratch but the very thought of how many things need to work in harmony is scary. The shooter entity is going to stay still while trying to take out a bunch of oncoming enemy capsules. We are going to use a collider cast to sense for enemies and a converted physics collider to register a hit on the enemies. we will rely on a collision event to fire which we can handle to define what must happen. To keep it simple let's just destroy the projectile and the enemy. We do this by writing a collision event job that will be invoked every time there is a collision. It's our job to filter on it and identify if the 2 entities involved in collision say entity A and entity B are the projectile and enemy. If so we are going to destroy both irrespective of the order the collision occurs. GitHub - https://github.com/ForgingStation/Battle-Simulation-Basic-Setup---Unity-ECS-DOTS
Gaming
#Forging Station #Sumera Sankruthyayana #Battle #Simulation #Unity DOTS #Unity ECS #Unity DOTS Battle Simulation #Basic Battle Setup #Collider Cast #ICollisionEventJob #Burst complied Collision Job #Handling Collisions in ECS #Entity Interation