What's the best way to resolve a pair of entities with IJobChunk? I am workign on a collision system and im not sure what the best way is to resolve other entities taken from other chunks. My system has a NativeArray that stores the position hash and the entity ID (in the form of a struct) and I need a way to resolve it within another IJobChunk.
I compare one entity with another using it's position hash but I need a way to actually convert the entity id back to an entity within the other job.
I originally did this with a NativeArray of the entities in an IJobEntity, but I don't know if that's the best way to do it, and I had to change to use junks in order to stream the results.