reeseschultz / ReeseUnityDemos

Unity packages and demos—emphasizing ECS, jobs and the Burst compiler—by Reese and others.

Home Page:https://reese.codes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

New package: DOTS spatial events

reeseschultz opened this issue · comments

Is the improvement related to a problem? Please describe.

Many of my entity-driven demos I'm working on in #48 will come to depend on a (user-friendly!) spatial trigger event system. The code for this should be moved to its own package because it's so generally applicable for games and simulations. I'd also like to be able to import it into one of my private projects.

Describe the solution you'd prefer:

Basically a system with SpatialTriggers and SpatialActivators (each will have authoring components). A preliminary solution is embedded in the demo code for #48 already, but I have some performance optimizations in mind.

Describe alternatives or workarounds you've considered:

Keeping this in the demo code permanently won't make sense, because it will just result in people copy-pasting code with no ability to easily update it.

This will be ready soon since #58 has been merged.