@daneren2005/shared-memory-physics 1.6.0 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -820,6 +820,10 @@ box around their actual outline. A direct transform/body edit outside the physic
820
820
  `world.updateSpatialEntity(entity)`. A custom physics wrapper that changes a transform after calling the library
821
821
  update can call `updateSpatialMap(workerWorld, entityId, components)` instead.
822
822
 
823
+ Games with registered ECS wrapper classes can pass their entity union as `PhysicalWorld`'s second generic. The
824
+ world's entity map, lifecycle callbacks, and spatial-query results then retain that union instead of widening to
825
+ `BaseEntity`.
826
+
823
827
  `PhysicsSystem` requires a `PhysicalWorld` (or another `BaseWorld` that implements `PhysicalWorldSource`) and
824
828
  automatically shares its map with the physics worker. Another worker system can receive the same map by calling
825
829
  `addPhysicalWorldData(sourceWorld, runWorld)` from its system's `addDataToWorld`, then `getSpatialMap(runWorld)` in