fr.jeanf.scenemanagement 1.0.21 → 1.0.23

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,14 @@ namespace jeanf.scenemanagement
268
268
  if (!ShouldCheckVolume(checkableZones, volume.ZoneId))
269
269
  continue;
270
270
 
271
- var range = volume.Scale * 0.5f;
272
271
  var pos = transform.Position;
273
- var distance = math.abs(playerPosition - pos);
272
+ var rot = math.quaternion(transform.Value);
273
+ var rotationOnly = float4x4.TRS(pos, rot, new float3(1f, 1f, 1f));
274
+ var worldToLocal = math.inverse(rotationOnly);
275
+ var localPlayerPos = math.transform(worldToLocal, playerPosition);
276
+
277
+ var range = volume.Scale * 0.5f;
278
+ var distance = math.abs(localPlayerPos);
274
279
  var insideAxis = distance < range;
275
280
 
276
281
  if (insideAxis is not { x: true, y: true, z: true }) continue;
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.23",
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": "2b9ef00bfbf6d9c4f5486a3a446e7510621ff0b9"
11
11
  },
12
12
  "keywords": [
13
13
  "jeanf",