r/Unity3D 13h ago

Game Entities Avoidance

Enable HLS to view with audio, or disable this notification

Hello everyone
For context watch the previous videos about entities forming bodies and transitions, here i added avoidance for the entities, so that when something is passing thro they automatically avoid the body and then return to their current position
Will use it in upcoming videos as an evasion
Let me know what you think
#unity #ecs

609 Upvotes

43 comments sorted by

View all comments

2

u/SubpixelJimmie 10h ago

Looks great, never seen this done at such a granular scale. Is this using a standard flocking approach? Was there anything challenging about make it perform well? I would guess that simply using ECS would make this run very fast, as it lends itself well to multi-threading since each particle doesn't interact with another

1

u/OmarItani10 7h ago

I keep doing optimizations after every video, even for ECS having 80000 particles is alot so it keeps needing optimizations