create-threenative 0.2.20 → 0.2.21

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.
@@ -1080,7 +1080,7 @@ index 7c8d2322834904c1247c79cda31beff8e2bfc497..b87cf38629b2c52804888a10bda3b814
1080
1080
 
1081
1081
  }
1082
1082
  diff --git a/build/three.webgpu.js b/build/three.webgpu.js
1083
- index f8fc49fe7df98cbac4609603a1f2a2c6aea79675..a458a6d75ee95fdb9913222f4ed31c5c3cc56b09 100644
1083
+ index f8fc49fe7df98cbac4609603a1f2a2c6aea79675..e6d9e39318189f6e555be86f2a57d9467fc1188d 100644
1084
1084
  --- a/build/three.webgpu.js
1085
1085
  +++ b/build/three.webgpu.js
1086
1086
  @@ -5182,7 +5182,7 @@ class Animation {
@@ -2992,7 +2992,36 @@ index f8fc49fe7df98cbac4609603a1f2a2c6aea79675..a458a6d75ee95fdb9913222f4ed31c5c
2992
2992
 
2993
2993
  }
2994
2994
 
2995
- @@ -51001,6 +51777,7 @@ class WebGPUBackend extends Backend {
2995
+ @@ -49324,28 +50100,24 @@
2996
+ _viewDescriptor.dimension = GPUTextureViewDimension.TwoD;
2997
+
2998
+ const textureView = textureData.texture.createView( _viewDescriptor );
2999
+ const msaaTexture = textureData.msaaTextures?.[ layer ];
3000
+ textureViews.push( {
3001
+ view: msaaTexture !== undefined ? msaaTexture.createView() : textureView,
3002
+ resolveTarget: msaaTexture !== undefined && renderTarget.resolveColorBuffer === true ? textureView : undefined,
3003
+ depthSlice: undefined
3004
+ } );
3005
+
3006
+ }
3007
+
3008
+ - } else {
3009
+ -
3010
+ - _viewDescriptor.dimension = GPUTextureViewDimension.TwoDArray;
3011
+ -
3012
+ }
3013
+
3014
+ }
3015
+
3016
+ if ( isRenderCameraDepthArray !== true ) {
3017
+
3018
+ const textureView = textureData.texture.createView( _viewDescriptor );
3019
+
3020
+ let view, resolveTarget;
3021
+
3022
+ if ( textureData.msaaTexture !== undefined ) {
3023
+
3024
+ @@ -51001,6 +51773,7 @@ class WebGPUBackend extends Backend {
2996
3025
  const utils = this.utils;
2997
3026
 
2998
3027
  const sampleCount = utils.getSampleCountRenderContext( renderObject.context );
@@ -3000,7 +3029,7 @@ index f8fc49fe7df98cbac4609603a1f2a2c6aea79675..a458a6d75ee95fdb9913222f4ed31c5c
3000
3029
  const colorSpace = utils.getCurrentColorSpace( renderObject.context );
3001
3030
  const colorFormat = utils.getCurrentColorFormat( renderObject.context );
3002
3031
  const depthStencilFormat = utils.getCurrentDepthStencilFormat( renderObject.context );
3003
- @@ -51025,7 +51802,8 @@ class WebGPUBackend extends Backend {
3032
+ @@ -51025,7 +51798,8 @@ class WebGPUBackend extends Backend {
3004
3033
  data.primitiveTopology !== primitiveTopology || data.stripIndexFormat !== stripIndexFormat ||
3005
3034
  data.frontFaceCW !== frontFaceCW ||
3006
3035
  data.geometryVersion !== renderObject.geometryVersion ||
@@ -3010,7 +3039,7 @@ index f8fc49fe7df98cbac4609603a1f2a2c6aea79675..a458a6d75ee95fdb9913222f4ed31c5c
3010
3039
  ) {
3011
3040
 
3012
3041
  data.material = material; data.materialVersion = material.version;
3013
- @@ -51048,6 +51826,7 @@ class WebGPUBackend extends Backend {
3042
+ @@ -51048,6 +51822,7 @@ class WebGPUBackend extends Backend {
3014
3043
  data.frontFaceCW = frontFaceCW;
3015
3044
  data.geometryVersion = renderObject.geometryVersion;
3016
3045
  data.clippingContextCacheKey = renderObject.clippingContextCacheKey;
@@ -3018,7 +3047,7 @@ index f8fc49fe7df98cbac4609603a1f2a2c6aea79675..a458a6d75ee95fdb9913222f4ed31c5c
3018
3047
 
3019
3048
  needsUpdate = true;
3020
3049
 
3021
- @@ -51069,6 +51848,7 @@ class WebGPUBackend extends Backend {
3050
+ @@ -51069,6 +51844,7 @@ class WebGPUBackend extends Backend {
3022
3051
 
3023
3052
  const utils = this.utils;
3024
3053
  const renderContext = renderObject.context;
@@ -3026,7 +3055,7 @@ index f8fc49fe7df98cbac4609603a1f2a2c6aea79675..a458a6d75ee95fdb9913222f4ed31c5c
3026
3055
 
3027
3056
  // meshes with negative scale have a different frontFace render pipeline
3028
3057
  // descriptor value so the following must be honored in the cache key
3029
- @@ -51088,9 +51868,11 @@ class WebGPUBackend extends Backend {
3058
+ @@ -51088,9 +51864,11 @@ class WebGPUBackend extends Backend {
3030
3059
  material.side, material.alphaToCoverage,
3031
3060
  frontFaceCW,
3032
3061
  utils.getSampleCountRenderContext( renderContext ),
@@ -3038,7 +3067,7 @@ index f8fc49fe7df98cbac4609603a1f2a2c6aea79675..a458a6d75ee95fdb9913222f4ed31c5c
3038
3067
  renderObject.clippingContextCacheKey
3039
3068
  ].join();
3040
3069
 
3041
- @@ -51158,6 +51940,12 @@ class WebGPUBackend extends Backend {
3070
+ @@ -51158,6 +51936,12 @@ class WebGPUBackend extends Backend {
3042
3071
 
3043
3072
  }
3044
3073
 
@@ -3052,7 +3081,7 @@ index f8fc49fe7df98cbac4609603a1f2a2c6aea79675..a458a6d75ee95fdb9913222f4ed31c5c
3052
3081
  * Generates mipmaps for the given texture.
3053
3082
  *
3054
3083
  diff --git a/build/three.webgpu.nodes.js b/build/three.webgpu.nodes.js
3055
- index 39c897cb2f5f2092419c2cd4f464a88f1151d7d0..790d97c1247564c7fd3aea2ee54ea0a6ffa50c62 100644
3084
+ index 39c897cb2f5f2092419c2cd4f464a88f1151d7d0..40a12e5262477dca5218c1e3396d07223adb673a 100644
3056
3085
  --- a/build/three.webgpu.nodes.js
3057
3086
  +++ b/build/three.webgpu.nodes.js
3058
3087
  @@ -179,6 +179,15 @@ class NodeMaterialObserver {
@@ -6034,7 +6063,36 @@ index 39c897cb2f5f2092419c2cd4f464a88f1151d7d0..790d97c1247564c7fd3aea2ee54ea0a6
6034
6063
 
6035
6064
  }
6036
6065
 
6037
- @@ -92203,6 +93639,7 @@ class WebGPUBackend extends Backend {
6066
+ @@ -90525,28 +91961,24 @@
6067
+ _viewDescriptor.arrayLayerCount = 1;
6068
+ _viewDescriptor.dimension = GPUTextureViewDimension.TwoD;
6069
+
6070
+ const textureView = textureData.texture.createView( _viewDescriptor );
6071
+ const msaaTexture = textureData.msaaTextures?.[ layer ];
6072
+ textureViews.push( {
6073
+ view: msaaTexture !== undefined ? msaaTexture.createView() : textureView,
6074
+ resolveTarget: msaaTexture !== undefined && renderTarget.resolveColorBuffer === true ? textureView : undefined,
6075
+ depthSlice: undefined
6076
+ } );
6077
+
6078
+ }
6079
+ -
6080
+ - } else {
6081
+ -
6082
+ - _viewDescriptor.dimension = GPUTextureViewDimension.TwoDArray;
6083
+
6084
+ }
6085
+
6086
+ }
6087
+
6088
+ if ( isRenderCameraDepthArray !== true ) {
6089
+
6090
+ const textureView = textureData.texture.createView( _viewDescriptor );
6091
+
6092
+ let view, resolveTarget;
6093
+
6094
+ if ( textureData.msaaTexture !== undefined ) {
6095
+ @@ -92203,6 +93635,7 @@ class WebGPUBackend extends Backend {
6038
6096
  const utils = this.utils;
6039
6097
 
6040
6098
  const sampleCount = utils.getSampleCountRenderContext( renderObject.context );
@@ -6042,7 +6100,7 @@ index 39c897cb2f5f2092419c2cd4f464a88f1151d7d0..790d97c1247564c7fd3aea2ee54ea0a6
6042
6100
  const colorSpace = utils.getCurrentColorSpace( renderObject.context );
6043
6101
  const colorFormat = utils.getCurrentColorFormat( renderObject.context );
6044
6102
  const depthStencilFormat = utils.getCurrentDepthStencilFormat( renderObject.context );
6045
- @@ -92227,7 +93664,8 @@ class WebGPUBackend extends Backend {
6103
+ @@ -92227,7 +93660,8 @@ class WebGPUBackend extends Backend {
6046
6104
  data.primitiveTopology !== primitiveTopology || data.stripIndexFormat !== stripIndexFormat ||
6047
6105
  data.frontFaceCW !== frontFaceCW ||
6048
6106
  data.geometryVersion !== renderObject.geometryVersion ||
@@ -6052,7 +6110,7 @@ index 39c897cb2f5f2092419c2cd4f464a88f1151d7d0..790d97c1247564c7fd3aea2ee54ea0a6
6052
6110
  ) {
6053
6111
 
6054
6112
  data.material = material; data.materialVersion = material.version;
6055
- @@ -92250,6 +93688,7 @@ class WebGPUBackend extends Backend {
6113
+ @@ -92250,6 +93684,7 @@ class WebGPUBackend extends Backend {
6056
6114
  data.frontFaceCW = frontFaceCW;
6057
6115
  data.geometryVersion = renderObject.geometryVersion;
6058
6116
  data.clippingContextCacheKey = renderObject.clippingContextCacheKey;
@@ -6060,7 +6118,7 @@ index 39c897cb2f5f2092419c2cd4f464a88f1151d7d0..790d97c1247564c7fd3aea2ee54ea0a6
6060
6118
 
6061
6119
  needsUpdate = true;
6062
6120
 
6063
- @@ -92271,6 +93710,7 @@ class WebGPUBackend extends Backend {
6121
+ @@ -92271,6 +93706,7 @@ class WebGPUBackend extends Backend {
6064
6122
 
6065
6123
  const utils = this.utils;
6066
6124
  const renderContext = renderObject.context;
@@ -6068,7 +6126,7 @@ index 39c897cb2f5f2092419c2cd4f464a88f1151d7d0..790d97c1247564c7fd3aea2ee54ea0a6
6068
6126
 
6069
6127
  // meshes with negative scale have a different frontFace render pipeline
6070
6128
  // descriptor value so the following must be honored in the cache key
6071
- @@ -92290,9 +93730,11 @@ class WebGPUBackend extends Backend {
6129
+ @@ -92290,9 +93726,11 @@ class WebGPUBackend extends Backend {
6072
6130
  material.side, material.alphaToCoverage,
6073
6131
  frontFaceCW,
6074
6132
  utils.getSampleCountRenderContext( renderContext ),
@@ -6080,7 +6138,7 @@ index 39c897cb2f5f2092419c2cd4f464a88f1151d7d0..790d97c1247564c7fd3aea2ee54ea0a6
6080
6138
  renderObject.clippingContextCacheKey
6081
6139
  ].join();
6082
6140
 
6083
- @@ -92360,6 +93802,12 @@ class WebGPUBackend extends Backend {
6141
+ @@ -92360,6 +93798,12 @@ class WebGPUBackend extends Backend {
6084
6142
 
6085
6143
  }
6086
6144
 
@@ -8357,7 +8415,7 @@ index 6f6a362a36b34c0b6cf7e3c93e818586822c6f3e..46f351dc993df997be456adc176b4a1e
8357
8415
 
8358
8416
  }
8359
8417
  diff --git a/src/renderers/webgpu/WebGPUBackend.js b/src/renderers/webgpu/WebGPUBackend.js
8360
- index 719d67abe3986ca058794b63a441ce66bedde891..39001c639aafb8422852c8b75ce1ee357427b174 100644
8418
+ index 719d67abe3986ca058794b63a441ce66bedde891..9eee576d31cc5329ed67eb8e0ccba6f96edca088 100644
8361
8419
  --- a/src/renderers/webgpu/WebGPUBackend.js
8362
8420
  +++ b/src/renderers/webgpu/WebGPUBackend.js
8363
8421
  @@ -106,6 +106,27 @@ class WebGPUBackend extends Backend {
@@ -8422,7 +8480,36 @@ index 719d67abe3986ca058794b63a441ce66bedde891..39001c639aafb8422852c8b75ce1ee35
8422
8480
 
8423
8481
  }
8424
8482
 
8425
- @@ -2414,6 +2444,7 @@ class WebGPUBackend extends Backend {
8483
+ @@ -736,28 +766,24 @@
8484
+ _viewDescriptor.arrayLayerCount = 1;
8485
+ _viewDescriptor.dimension = GPUTextureViewDimension.TwoD;
8486
+
8487
+ const textureView = textureData.texture.createView( _viewDescriptor );
8488
+ const msaaTexture = textureData.msaaTextures?.[ layer ];
8489
+ textureViews.push( {
8490
+ view: msaaTexture !== undefined ? msaaTexture.createView() : textureView,
8491
+ resolveTarget: msaaTexture !== undefined && renderTarget.resolveColorBuffer === true ? textureView : undefined,
8492
+ depthSlice: undefined
8493
+ } );
8494
+
8495
+ }
8496
+ -
8497
+ - } else {
8498
+ -
8499
+ - _viewDescriptor.dimension = GPUTextureViewDimension.TwoDArray;
8500
+
8501
+ }
8502
+
8503
+ }
8504
+
8505
+ if ( isRenderCameraDepthArray !== true ) {
8506
+
8507
+ const textureView = textureData.texture.createView( _viewDescriptor );
8508
+
8509
+ let view, resolveTarget;
8510
+
8511
+ if ( textureData.msaaTexture !== undefined ) {
8512
+ @@ -2414,6 +2440,7 @@ class WebGPUBackend extends Backend {
8426
8513
  const utils = this.utils;
8427
8514
 
8428
8515
  const sampleCount = utils.getSampleCountRenderContext( renderObject.context );
@@ -8430,7 +8517,7 @@ index 719d67abe3986ca058794b63a441ce66bedde891..39001c639aafb8422852c8b75ce1ee35
8430
8517
  const colorSpace = utils.getCurrentColorSpace( renderObject.context );
8431
8518
  const colorFormat = utils.getCurrentColorFormat( renderObject.context );
8432
8519
  const depthStencilFormat = utils.getCurrentDepthStencilFormat( renderObject.context );
8433
- @@ -2438,7 +2469,8 @@ class WebGPUBackend extends Backend {
8520
+ @@ -2438,7 +2465,8 @@ class WebGPUBackend extends Backend {
8434
8521
  data.primitiveTopology !== primitiveTopology || data.stripIndexFormat !== stripIndexFormat ||
8435
8522
  data.frontFaceCW !== frontFaceCW ||
8436
8523
  data.geometryVersion !== renderObject.geometryVersion ||
@@ -8440,7 +8527,7 @@ index 719d67abe3986ca058794b63a441ce66bedde891..39001c639aafb8422852c8b75ce1ee35
8440
8527
  ) {
8441
8528
 
8442
8529
  data.material = material; data.materialVersion = material.version;
8443
- @@ -2461,6 +2493,7 @@ class WebGPUBackend extends Backend {
8530
+ @@ -2461,6 +2489,7 @@ class WebGPUBackend extends Backend {
8444
8531
  data.frontFaceCW = frontFaceCW;
8445
8532
  data.geometryVersion = renderObject.geometryVersion;
8446
8533
  data.clippingContextCacheKey = renderObject.clippingContextCacheKey;
@@ -8448,7 +8535,7 @@ index 719d67abe3986ca058794b63a441ce66bedde891..39001c639aafb8422852c8b75ce1ee35
8448
8535
 
8449
8536
  needsUpdate = true;
8450
8537
 
8451
- @@ -2482,6 +2515,7 @@ class WebGPUBackend extends Backend {
8538
+ @@ -2482,6 +2511,7 @@ class WebGPUBackend extends Backend {
8452
8539
 
8453
8540
  const utils = this.utils;
8454
8541
  const renderContext = renderObject.context;
@@ -8456,7 +8543,7 @@ index 719d67abe3986ca058794b63a441ce66bedde891..39001c639aafb8422852c8b75ce1ee35
8456
8543
 
8457
8544
  // meshes with negative scale have a different frontFace render pipeline
8458
8545
  // descriptor value so the following must be honored in the cache key
8459
- @@ -2501,9 +2535,11 @@ class WebGPUBackend extends Backend {
8546
+ @@ -2501,9 +2531,11 @@ class WebGPUBackend extends Backend {
8460
8547
  material.side, material.alphaToCoverage,
8461
8548
  frontFaceCW,
8462
8549
  utils.getSampleCountRenderContext( renderContext ),
@@ -8468,7 +8555,7 @@ index 719d67abe3986ca058794b63a441ce66bedde891..39001c639aafb8422852c8b75ce1ee35
8468
8555
  renderObject.clippingContextCacheKey
8469
8556
  ].join();
8470
8557
 
8471
- @@ -2571,6 +2607,12 @@ class WebGPUBackend extends Backend {
8558
+ @@ -2571,6 +2603,12 @@ class WebGPUBackend extends Backend {
8472
8559
 
8473
8560
  }
8474
8561
 
@@ -19,9 +19,9 @@
19
19
  "format:check": "biome format src"
20
20
  },
21
21
  "dependencies": {
22
- "@threenative/core": ">=0.3.15",
23
- "@threenative/physics": ">=0.3.15",
24
- "@threenative/ui": ">=0.3.15",
22
+ "@threenative/core": ">=0.3.16",
23
+ "@threenative/physics": ">=0.3.16",
24
+ "@threenative/ui": ">=0.3.16",
25
25
  "react": "19.2.0",
26
26
  "react-dom": "19.2.0",
27
27
  "three": "0.187.0"
@@ -29,13 +29,13 @@
29
29
  "devDependencies": {
30
30
  "@gltf-transform/cli": "4.4.2",
31
31
  "@tailwindcss/vite": "4.3.3",
32
- "@threenative/assets": ">=0.3.16",
33
- "@threenative/playtest": ">=0.3.15",
32
+ "@threenative/assets": ">=0.3.17",
33
+ "@threenative/playtest": ">=0.3.16",
34
34
  "@types/react": "19.2.0",
35
35
  "@types/react-dom": "19.2.0",
36
36
  "@types/three": "0.187.0",
37
37
  "@vitejs/plugin-react": "6.0.5",
38
- "create-threenative": "0.2.20",
38
+ "create-threenative": "0.2.21",
39
39
  "esbuild": "0.27.0",
40
40
  "playwright": "1.62.1",
41
41
  "tailwindcss": "4.3.3",
@@ -45,7 +45,7 @@
45
45
  "eslint": "10.13.0"
46
46
  },
47
47
  "optionalDependencies": {
48
- "@threenative/runtime-native": ">=0.3.15"
48
+ "@threenative/runtime-native": ">=0.3.16"
49
49
  },
50
50
  "overrides": {
51
51
  "sharp": ">=0.35.4",
@@ -19,9 +19,9 @@
19
19
  "format:check": "biome format src"
20
20
  },
21
21
  "dependencies": {
22
- "@threenative/core": ">=0.3.15",
23
- "@threenative/physics": ">=0.3.15",
24
- "@threenative/ui": ">=0.3.15",
22
+ "@threenative/core": ">=0.3.16",
23
+ "@threenative/physics": ">=0.3.16",
24
+ "@threenative/ui": ">=0.3.16",
25
25
  "react": "19.2.0",
26
26
  "react-dom": "19.2.0",
27
27
  "three": "0.187.0"
@@ -30,11 +30,11 @@
30
30
  "@tailwindcss/vite": "4.3.3",
31
31
  "@vitejs/plugin-react": "6.0.5",
32
32
  "@types/three": "0.187.0",
33
- "@threenative/assets": ">=0.3.16",
34
- "@threenative/playtest": ">=0.3.15",
33
+ "@threenative/assets": ">=0.3.17",
34
+ "@threenative/playtest": ">=0.3.16",
35
35
  "@types/react": "19.2.0",
36
36
  "@types/react-dom": "19.2.0",
37
- "create-threenative": "0.2.20",
37
+ "create-threenative": "0.2.21",
38
38
  "esbuild": "0.27.0",
39
39
  "playwright": "1.62.1",
40
40
  "tailwindcss": "4.3.3",
@@ -45,7 +45,7 @@
45
45
  "eslint": "10.13.0"
46
46
  },
47
47
  "optionalDependencies": {
48
- "@threenative/runtime-native": ">=0.3.15"
48
+ "@threenative/runtime-native": ">=0.3.16"
49
49
  },
50
50
  "overrides": {
51
51
  "sharp": ">=0.35.4",
@@ -53,6 +53,8 @@ export class Warden implements ITarget {
53
53
  #flash = 0;
54
54
  #heading = new Vector3();
55
55
  #last = new Vector3();
56
+ /** Charge steps in a row that covered under a third of what they asked for. */
57
+ #blocked = 0;
56
58
 
57
59
  constructor(
58
60
  readonly id: string,
@@ -116,15 +118,19 @@ export class Warden implements ITarget {
116
118
  this.#heading.copy(to).normalize();
117
119
  this.#face(Math.atan2(to.x, to.z), 1);
118
120
  this.#last.copy(this.mesh.position);
121
+ this.#blocked = 0;
119
122
  this.#set("charge");
120
123
  }
121
124
  break;
122
125
  case "charge": {
123
126
  speed = feel.chargeSpeed;
124
- // Met a wall: it covered under a third of what it asked for in the last step.
127
+ // Met a wall: it covered under a third of what it asked for in two steps running. A wall
128
+ // stops every step; a lone short step is the character controller catching a floor
129
+ // triangle's edge, and the charge goes on.
125
130
  const moved = this.#last.distanceTo(this.mesh.position);
126
131
  this.#last.copy(this.mesh.position);
127
- if (this.#timer > 0.15 && moved < feel.chargeSpeed * dt * 0.3) {
132
+ this.#blocked = moved < feel.chargeSpeed * dt * 0.3 ? this.#blocked + 1 : 0;
133
+ if (this.#timer > 0.15 && this.#blocked >= 2) {
128
134
  this.stuns += 1;
129
135
  this.#set("stunned");
130
136
  speed = 0;
@@ -439,7 +439,7 @@ export function isSolid(object: Object3D): boolean {
439
439
  }
440
440
 
441
441
  // ------------------------------------------------------------------------- the woodland floor
442
- // Baked props, streamed round Wren. The generators live in @threenative/procedural-vegetation and
442
+ // Baked props, streamed round Wren. The generators live in @threenative/procedural-environment and
443
443
  // the bytes in ../template-assets/assets (regenerate with `pnpm tsx scripts/bake-floor-assets.ts`);
444
444
  // the material is the kit's own, in render/foliage.ts.
445
445
 
@@ -19,9 +19,9 @@
19
19
  "format:check": "biome format src"
20
20
  },
21
21
  "dependencies": {
22
- "@threenative/core": ">=0.3.15",
23
- "@threenative/physics": ">=0.3.15",
24
- "@threenative/ui": ">=0.3.15",
22
+ "@threenative/core": ">=0.3.16",
23
+ "@threenative/physics": ">=0.3.16",
24
+ "@threenative/ui": ">=0.3.16",
25
25
  "react": "19.2.0",
26
26
  "react-dom": "19.2.0",
27
27
  "three": "0.187.0"
@@ -30,11 +30,11 @@
30
30
  "@tailwindcss/vite": "4.3.3",
31
31
  "@vitejs/plugin-react": "6.0.5",
32
32
  "@types/three": "0.187.0",
33
- "@threenative/assets": ">=0.3.16",
34
- "@threenative/playtest": ">=0.3.15",
33
+ "@threenative/assets": ">=0.3.17",
34
+ "@threenative/playtest": ">=0.3.16",
35
35
  "@types/react": "19.2.0",
36
36
  "@types/react-dom": "19.2.0",
37
- "create-threenative": "0.2.20",
37
+ "create-threenative": "0.2.21",
38
38
  "esbuild": "0.27.0",
39
39
  "playwright": "1.62.1",
40
40
  "tailwindcss": "4.3.3",
@@ -45,7 +45,7 @@
45
45
  "eslint": "10.13.0"
46
46
  },
47
47
  "optionalDependencies": {
48
- "@threenative/runtime-native": ">=0.3.15"
48
+ "@threenative/runtime-native": ">=0.3.16"
49
49
  },
50
50
  "overrides": {
51
51
  "sharp": ">=0.35.4",
@@ -19,8 +19,8 @@
19
19
  "format:check": "biome format src"
20
20
  },
21
21
  "dependencies": {
22
- "@threenative/core": ">=0.3.15",
23
- "@threenative/ui": ">=0.3.15",
22
+ "@threenative/core": ">=0.3.16",
23
+ "@threenative/ui": ">=0.3.16",
24
24
  "react": "19.2.0",
25
25
  "react-dom": "19.2.0",
26
26
  "three": "0.187.0"
@@ -29,11 +29,11 @@
29
29
  "@tailwindcss/vite": "4.3.3",
30
30
  "@vitejs/plugin-react": "6.0.5",
31
31
  "@types/three": "0.187.0",
32
- "@threenative/assets": ">=0.3.16",
33
- "@threenative/playtest": ">=0.3.15",
32
+ "@threenative/assets": ">=0.3.17",
33
+ "@threenative/playtest": ">=0.3.16",
34
34
  "@types/react": "19.2.0",
35
35
  "@types/react-dom": "19.2.0",
36
- "create-threenative": "0.2.20",
36
+ "create-threenative": "0.2.21",
37
37
  "esbuild": "0.27.0",
38
38
  "playwright": "1.62.1",
39
39
  "tailwindcss": "4.3.3",
@@ -44,7 +44,7 @@
44
44
  "eslint": "10.13.0"
45
45
  },
46
46
  "optionalDependencies": {
47
- "@threenative/runtime-native": ">=0.3.15"
47
+ "@threenative/runtime-native": ">=0.3.16"
48
48
  },
49
49
  "overrides": {
50
50
  "sharp": ">=0.35.4",
@@ -19,15 +19,15 @@
19
19
  "format:check": "biome format src"
20
20
  },
21
21
  "dependencies": {
22
- "@threenative/core": ">=0.3.15",
23
- "@threenative/physics": ">=0.3.15",
22
+ "@threenative/core": ">=0.3.16",
23
+ "@threenative/physics": ">=0.3.16",
24
24
  "three": "0.187.0"
25
25
  },
26
26
  "devDependencies": {
27
- "@threenative/assets": ">=0.3.16",
28
- "@threenative/playtest": ">=0.3.15",
27
+ "@threenative/assets": ">=0.3.17",
28
+ "@threenative/playtest": ">=0.3.16",
29
29
  "@types/three": "0.187.0",
30
- "create-threenative": "0.2.20",
30
+ "create-threenative": "0.2.21",
31
31
  "esbuild": "0.27.0",
32
32
  "playwright": "1.62.1",
33
33
  "typescript": "7.0.2",
@@ -37,7 +37,7 @@
37
37
  "eslint": "10.13.0"
38
38
  },
39
39
  "optionalDependencies": {
40
- "@threenative/runtime-native": ">=0.3.15"
40
+ "@threenative/runtime-native": ">=0.3.16"
41
41
  },
42
42
  "overrides": {
43
43
  "sharp": ">=0.35.4",
@@ -19,9 +19,9 @@
19
19
  "format:check": "biome format src"
20
20
  },
21
21
  "dependencies": {
22
- "@threenative/core": ">=0.3.15",
23
- "@threenative/physics": ">=0.3.15",
24
- "@threenative/ui": ">=0.3.15",
22
+ "@threenative/core": ">=0.3.16",
23
+ "@threenative/physics": ">=0.3.16",
24
+ "@threenative/ui": ">=0.3.16",
25
25
  "react": "19.2.0",
26
26
  "react-dom": "19.2.0",
27
27
  "three": "0.187.0"
@@ -30,11 +30,11 @@
30
30
  "@tailwindcss/vite": "4.3.3",
31
31
  "@vitejs/plugin-react": "6.0.5",
32
32
  "@types/three": "0.187.0",
33
- "@threenative/assets": ">=0.3.16",
34
- "@threenative/playtest": ">=0.3.15",
33
+ "@threenative/assets": ">=0.3.17",
34
+ "@threenative/playtest": ">=0.3.16",
35
35
  "@types/react": "19.2.0",
36
36
  "@types/react-dom": "19.2.0",
37
- "create-threenative": "0.2.20",
37
+ "create-threenative": "0.2.21",
38
38
  "esbuild": "0.27.0",
39
39
  "playwright": "1.62.1",
40
40
  "tailwindcss": "4.3.3",
@@ -45,7 +45,7 @@
45
45
  "eslint": "10.13.0"
46
46
  },
47
47
  "optionalDependencies": {
48
- "@threenative/runtime-native": ">=0.3.15"
48
+ "@threenative/runtime-native": ">=0.3.16"
49
49
  },
50
50
  "overrides": {
51
51
  "sharp": ">=0.35.4",
@@ -18,9 +18,9 @@
18
18
  "format:check": "biome format src"
19
19
  },
20
20
  "dependencies": {
21
- "@threenative/core": ">=0.3.15",
22
- "@threenative/physics": ">=0.3.15",
23
- "@threenative/ui": ">=0.3.15",
21
+ "@threenative/core": ">=0.3.16",
22
+ "@threenative/physics": ">=0.3.16",
23
+ "@threenative/ui": ">=0.3.16",
24
24
  "react": "19.2.0",
25
25
  "react-dom": "19.2.0",
26
26
  "three": "0.187.0"
@@ -28,13 +28,13 @@
28
28
  "devDependencies": {
29
29
  "@gltf-transform/cli": "4.4.2",
30
30
  "@tailwindcss/vite": "4.3.3",
31
- "@threenative/assets": ">=0.3.16",
32
- "@threenative/playtest": ">=0.3.15",
31
+ "@threenative/assets": ">=0.3.17",
32
+ "@threenative/playtest": ">=0.3.16",
33
33
  "@types/react": "19.2.0",
34
34
  "@types/react-dom": "19.2.0",
35
35
  "@types/three": "0.187.0",
36
36
  "@vitejs/plugin-react": "6.0.5",
37
- "create-threenative": "0.2.20",
37
+ "create-threenative": "0.2.21",
38
38
  "esbuild": "0.27.0",
39
39
  "playwright": "1.62.1",
40
40
  "tailwindcss": "4.3.3",
@@ -44,7 +44,7 @@
44
44
  "eslint": "10.13.0"
45
45
  },
46
46
  "optionalDependencies": {
47
- "@threenative/runtime-native": ">=0.3.15"
47
+ "@threenative/runtime-native": ">=0.3.16"
48
48
  },
49
49
  "overrides": {
50
50
  "sharp": ">=0.35.4",
@@ -19,9 +19,9 @@
19
19
  "format:check": "biome format src"
20
20
  },
21
21
  "dependencies": {
22
- "@threenative/core": ">=0.3.15",
23
- "@threenative/physics": ">=0.3.15",
24
- "@threenative/ui": ">=0.3.15",
22
+ "@threenative/core": ">=0.3.16",
23
+ "@threenative/physics": ">=0.3.16",
24
+ "@threenative/ui": ">=0.3.16",
25
25
  "react": "19.2.0",
26
26
  "react-dom": "19.2.0",
27
27
  "three": "0.187.0"
@@ -29,13 +29,13 @@
29
29
  "devDependencies": {
30
30
  "@gltf-transform/cli": "4.4.2",
31
31
  "@tailwindcss/vite": "4.3.3",
32
- "@threenative/assets": ">=0.3.16",
33
- "@threenative/playtest": ">=0.3.15",
32
+ "@threenative/assets": ">=0.3.17",
33
+ "@threenative/playtest": ">=0.3.16",
34
34
  "@types/react": "19.2.0",
35
35
  "@types/react-dom": "19.2.0",
36
36
  "@types/three": "0.187.0",
37
37
  "@vitejs/plugin-react": "6.0.5",
38
- "create-threenative": "0.2.20",
38
+ "create-threenative": "0.2.21",
39
39
  "esbuild": "0.27.0",
40
40
  "playwright": "1.62.1",
41
41
  "tailwindcss": "4.3.3",
@@ -45,7 +45,7 @@
45
45
  "eslint": "10.13.0"
46
46
  },
47
47
  "optionalDependencies": {
48
- "@threenative/runtime-native": ">=0.3.15"
48
+ "@threenative/runtime-native": ">=0.3.16"
49
49
  },
50
50
  "overrides": {
51
51
  "sharp": ">=0.35.4",
@@ -7,7 +7,13 @@ export interface IRacerProgress {
7
7
  readonly position: Vector3;
8
8
  }
9
9
 
10
- export interface IRankedRacer extends IRacerProgress {
10
+ /**
11
+ * A ranked row is game state, so it holds plain values only: hot reload throws on a class
12
+ * instance, and a `position: Vector3` here reloaded the whole page on every edit.
13
+ */
14
+ export interface IRankedRacer {
15
+ readonly id: string;
16
+ readonly lap: number;
11
17
  readonly place: number;
12
18
  readonly routeProgress: number;
13
19
  }
@@ -15,7 +21,6 @@ export interface IRankedRacer extends IRacerProgress {
15
21
  export interface IRankedRacerScratch {
16
22
  id: string;
17
23
  lap: number;
18
- position: Vector3;
19
24
  place: number;
20
25
  routeProgress: number;
21
26
  }
@@ -58,7 +63,7 @@ export function rankRacers(
58
63
  ): readonly IRankedRacer[] {
59
64
  if (buffer.length > racers.length) buffer.length = racers.length;
60
65
  for (let index = buffer.length; index < racers.length; index += 1) {
61
- buffer.push({ id: "", lap: 0, position: new Vector3(), place: 0, routeProgress: 0 });
66
+ buffer.push({ id: "", lap: 0, place: 0, routeProgress: 0 });
62
67
  }
63
68
  for (let index = 0; index < racers.length; index += 1) {
64
69
  const racer = racers[index];
@@ -67,7 +72,6 @@ export function rankRacers(
67
72
  if (ranked === undefined) throw new Error("Racing ranking buffer slot is missing.");
68
73
  ranked.id = racer.id;
69
74
  ranked.lap = racer.lap;
70
- ranked.position = racer.position;
71
75
  ranked.routeProgress = routeProgress(route, racer.position, racer.lap, target);
72
76
  ranked.place = 0;
73
77
  }