create-threenative 0.2.20 → 0.2.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/agent-docs/references/assertion-reference.md +1 -1
- package/agent-docs/references/capability-reference.md +588 -9
- package/agent-docs/references/terrain-authoring.md +4 -0
- package/agent-files/.agents/skills/threenative-capabilities/SKILL.md +1 -0
- package/dist/index.js +14 -2
- package/dist/threenative.js +5 -5
- package/dist/web-engine-runtime.js +196 -2
- package/package.json +6 -6
- package/template-assets/patches/three@0.187.0.patch +108 -21
- package/templates/action-rpg/package.json +7 -7
- package/templates/adventure/package.json +7 -7
- package/templates/adventure/src/entities/Warden.ts +8 -2
- package/templates/adventure/src/level/Vale.ts +1 -1
- package/templates/collectathon/package.json +7 -7
- package/templates/kart/package.json +6 -6
- package/templates/minimal/package.json +6 -6
- package/templates/platformer/package.json +7 -7
- package/templates/puzzle/package.json +7 -7
- package/templates/racing/package.json +7 -7
- package/templates/racing/src/track/Ranking.ts +8 -4
- package/templates/rain/package.json +6 -6
- package/templates/rts/package.json +6 -6
- package/templates/runner/package.json +7 -7
- package/templates/sailing/package.json +7 -7
- package/templates/shooter/package.json +7 -7
- package/templates/snow/package.json +7 -7
- package/templates/starter/package.json +7 -7
- package/templates/tower-defense/package.json +7 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-threenative",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.22",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Scaffold a readable ThreeNative game project.",
|
|
6
6
|
"keywords": [
|
|
@@ -95,13 +95,13 @@
|
|
|
95
95
|
"@typescript-eslint/parser": "8.72.0",
|
|
96
96
|
"@typescript-eslint/eslint-plugin": "8.72.0",
|
|
97
97
|
"@types/estree": "1.0.8",
|
|
98
|
-
"@threenative/assets": "0.3.
|
|
99
|
-
"@threenative/
|
|
100
|
-
"@threenative/
|
|
101
|
-
"@threenative/blender-bridge": "0.2.
|
|
98
|
+
"@threenative/assets": "0.3.18",
|
|
99
|
+
"@threenative/core": "0.3.17",
|
|
100
|
+
"@threenative/physics": "0.3.17",
|
|
101
|
+
"@threenative/blender-bridge": "0.2.10"
|
|
102
102
|
},
|
|
103
103
|
"peerDependencies": {
|
|
104
|
-
"@threenative/assets": ">=0.3.
|
|
104
|
+
"@threenative/assets": ">=0.3.18 <0.4.0"
|
|
105
105
|
},
|
|
106
106
|
"scripts": {
|
|
107
107
|
"build": "tsup --config tsup.config.ts && publint",
|
|
@@ -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..
|
|
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
|
-
@@ -
|
|
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 +
|
|
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 +
|
|
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 +
|
|
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 +
|
|
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 +
|
|
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..
|
|
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
|
-
@@ -
|
|
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 +
|
|
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 +
|
|
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 +
|
|
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 +
|
|
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 +
|
|
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..
|
|
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
|
-
@@ -
|
|
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 +
|
|
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 +
|
|
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 +
|
|
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 +
|
|
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 +
|
|
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.
|
|
23
|
-
"@threenative/physics": ">=0.3.
|
|
24
|
-
"@threenative/ui": ">=0.3.
|
|
22
|
+
"@threenative/core": ">=0.3.17",
|
|
23
|
+
"@threenative/physics": ">=0.3.17",
|
|
24
|
+
"@threenative/ui": ">=0.3.17",
|
|
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.
|
|
33
|
-
"@threenative/playtest": ">=0.3.
|
|
32
|
+
"@threenative/assets": ">=0.3.18",
|
|
33
|
+
"@threenative/playtest": ">=0.3.17",
|
|
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.
|
|
38
|
+
"create-threenative": "0.2.22",
|
|
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.
|
|
48
|
+
"@threenative/runtime-native": ">=0.3.17"
|
|
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.
|
|
23
|
-
"@threenative/physics": ">=0.3.
|
|
24
|
-
"@threenative/ui": ">=0.3.
|
|
22
|
+
"@threenative/core": ">=0.3.17",
|
|
23
|
+
"@threenative/physics": ">=0.3.17",
|
|
24
|
+
"@threenative/ui": ">=0.3.17",
|
|
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.
|
|
34
|
-
"@threenative/playtest": ">=0.3.
|
|
33
|
+
"@threenative/assets": ">=0.3.18",
|
|
34
|
+
"@threenative/playtest": ">=0.3.17",
|
|
35
35
|
"@types/react": "19.2.0",
|
|
36
36
|
"@types/react-dom": "19.2.0",
|
|
37
|
-
"create-threenative": "0.2.
|
|
37
|
+
"create-threenative": "0.2.22",
|
|
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.
|
|
48
|
+
"@threenative/runtime-native": ">=0.3.17"
|
|
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
|
|
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
|
-
|
|
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-
|
|
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.
|
|
23
|
-
"@threenative/physics": ">=0.3.
|
|
24
|
-
"@threenative/ui": ">=0.3.
|
|
22
|
+
"@threenative/core": ">=0.3.17",
|
|
23
|
+
"@threenative/physics": ">=0.3.17",
|
|
24
|
+
"@threenative/ui": ">=0.3.17",
|
|
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.
|
|
34
|
-
"@threenative/playtest": ">=0.3.
|
|
33
|
+
"@threenative/assets": ">=0.3.18",
|
|
34
|
+
"@threenative/playtest": ">=0.3.17",
|
|
35
35
|
"@types/react": "19.2.0",
|
|
36
36
|
"@types/react-dom": "19.2.0",
|
|
37
|
-
"create-threenative": "0.2.
|
|
37
|
+
"create-threenative": "0.2.22",
|
|
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.
|
|
48
|
+
"@threenative/runtime-native": ">=0.3.17"
|
|
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.
|
|
23
|
-
"@threenative/ui": ">=0.3.
|
|
22
|
+
"@threenative/core": ">=0.3.17",
|
|
23
|
+
"@threenative/ui": ">=0.3.17",
|
|
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.
|
|
33
|
-
"@threenative/playtest": ">=0.3.
|
|
32
|
+
"@threenative/assets": ">=0.3.18",
|
|
33
|
+
"@threenative/playtest": ">=0.3.17",
|
|
34
34
|
"@types/react": "19.2.0",
|
|
35
35
|
"@types/react-dom": "19.2.0",
|
|
36
|
-
"create-threenative": "0.2.
|
|
36
|
+
"create-threenative": "0.2.22",
|
|
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.
|
|
47
|
+
"@threenative/runtime-native": ">=0.3.17"
|
|
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.
|
|
23
|
-
"@threenative/physics": ">=0.3.
|
|
22
|
+
"@threenative/core": ">=0.3.17",
|
|
23
|
+
"@threenative/physics": ">=0.3.17",
|
|
24
24
|
"three": "0.187.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@threenative/assets": ">=0.3.
|
|
28
|
-
"@threenative/playtest": ">=0.3.
|
|
27
|
+
"@threenative/assets": ">=0.3.18",
|
|
28
|
+
"@threenative/playtest": ">=0.3.17",
|
|
29
29
|
"@types/three": "0.187.0",
|
|
30
|
-
"create-threenative": "0.2.
|
|
30
|
+
"create-threenative": "0.2.22",
|
|
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.
|
|
40
|
+
"@threenative/runtime-native": ">=0.3.17"
|
|
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.
|
|
23
|
-
"@threenative/physics": ">=0.3.
|
|
24
|
-
"@threenative/ui": ">=0.3.
|
|
22
|
+
"@threenative/core": ">=0.3.17",
|
|
23
|
+
"@threenative/physics": ">=0.3.17",
|
|
24
|
+
"@threenative/ui": ">=0.3.17",
|
|
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.
|
|
34
|
-
"@threenative/playtest": ">=0.3.
|
|
33
|
+
"@threenative/assets": ">=0.3.18",
|
|
34
|
+
"@threenative/playtest": ">=0.3.17",
|
|
35
35
|
"@types/react": "19.2.0",
|
|
36
36
|
"@types/react-dom": "19.2.0",
|
|
37
|
-
"create-threenative": "0.2.
|
|
37
|
+
"create-threenative": "0.2.22",
|
|
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.
|
|
48
|
+
"@threenative/runtime-native": ">=0.3.17"
|
|
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.
|
|
22
|
-
"@threenative/physics": ">=0.3.
|
|
23
|
-
"@threenative/ui": ">=0.3.
|
|
21
|
+
"@threenative/core": ">=0.3.17",
|
|
22
|
+
"@threenative/physics": ">=0.3.17",
|
|
23
|
+
"@threenative/ui": ">=0.3.17",
|
|
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.
|
|
32
|
-
"@threenative/playtest": ">=0.3.
|
|
31
|
+
"@threenative/assets": ">=0.3.18",
|
|
32
|
+
"@threenative/playtest": ">=0.3.17",
|
|
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.
|
|
37
|
+
"create-threenative": "0.2.22",
|
|
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.
|
|
47
|
+
"@threenative/runtime-native": ">=0.3.17"
|
|
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.
|
|
23
|
-
"@threenative/physics": ">=0.3.
|
|
24
|
-
"@threenative/ui": ">=0.3.
|
|
22
|
+
"@threenative/core": ">=0.3.17",
|
|
23
|
+
"@threenative/physics": ">=0.3.17",
|
|
24
|
+
"@threenative/ui": ">=0.3.17",
|
|
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.
|
|
33
|
-
"@threenative/playtest": ">=0.3.
|
|
32
|
+
"@threenative/assets": ">=0.3.18",
|
|
33
|
+
"@threenative/playtest": ">=0.3.17",
|
|
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.
|
|
38
|
+
"create-threenative": "0.2.22",
|
|
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.
|
|
48
|
+
"@threenative/runtime-native": ">=0.3.17"
|
|
49
49
|
},
|
|
50
50
|
"overrides": {
|
|
51
51
|
"sharp": ">=0.35.4",
|