fr.jeanf.scenemanagement 1.0.21 → 1.0.22

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/.attestation.p7m CHANGED
Binary file
@@ -268,9 +268,10 @@ namespace jeanf.scenemanagement
268
268
  if (!ShouldCheckVolume(checkableZones, volume.ZoneId))
269
269
  continue;
270
270
 
271
+ var worldToLocal = math.inverse(transform.Value);
272
+ var localPlayerPos = math.transform(worldToLocal, playerPosition);
271
273
  var range = volume.Scale * 0.5f;
272
- var pos = transform.Position;
273
- var distance = math.abs(playerPosition - pos);
274
+ var distance = math.abs(localPlayerPos);
274
275
  var insideAxis = distance < range;
275
276
 
276
277
  if (insideAxis is not { x: true, y: true, z: true }) continue;
@@ -288,6 +289,7 @@ namespace jeanf.scenemanagement
288
289
 
289
290
  return newPlayerZone;
290
291
  }
292
+
291
293
  [BurstCompile]
292
294
  private void CheckForZoneAndRegionChange(FixedString128Bytes newPlayerZone)
293
295
  {
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "fr.jeanf.scenemanagement",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "displayName": "Scene Management",
5
5
  "description": "This package contains two scene loading system, one is additive using the addressable system, the other is to load subscenes. \nBoth system are living side-by-side.\nThe dynamic systems handles the loading of all static content (environment) using subscenes.\nThe additive system loads scene additively depending on zone & region and upon scenario load/unload requests. Each region or scenario can have dependency that will remain loaded until either a region or a scenario became irrelevant.",
6
6
  "unity": "2021.3",
7
7
  "repository": {
8
8
  "url": "https://github.com/lejeanf/SceneManagement",
9
9
  "type": "git",
10
- "revision": "738e187cd31ac64f02d19e74a54165567c22ec09"
10
+ "revision": "a323d229c43b3303842d8b59153d3282841b352c"
11
11
  },
12
12
  "keywords": [
13
13
  "jeanf",