@jdultra/threedtiles 14.0.20 → 14.0.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.
- package/dist/assets/physicsHelper.worker-Cr8S3sZk.js.map +1 -0
- package/dist/assets/physicsRapier.worker-jgQ9dgLt.js.map +1 -0
- package/dist/assets/rapier-CaKmQPsS.js +5218 -0
- package/dist/assets/rapier-CaKmQPsS.js.map +1 -0
- package/dist/entry.d.ts +2 -0
- package/dist/simulation/ColliderShape.d.ts +27 -27
- package/dist/simulation/physics.d.ts +21 -1
- package/dist/simulation/physicsHelper.worker.d.ts +6 -0
- package/dist/threedtiles.cjs.js +455 -25
- package/dist/threedtiles.cjs.js.map +1 -1
- package/dist/threedtiles.es.js +4550 -3822
- package/dist/threedtiles.es.js.map +1 -1
- package/dist/threedtiles.umd.js +453 -23
- package/dist/threedtiles.umd.js.map +1 -1
- package/dist/tileset/OGC3DTile.d.ts +38 -7
- package/package.json +1 -1
|
@@ -46,13 +46,44 @@ export class OGC3DTile extends THREE.Object3D<THREE.Object3DEventMap> {
|
|
|
46
46
|
* @param {number} [properties.splatsSaturation = 1.0] - optional saturation multiplier. Typical useful range: 0.0 → 2.0 (1.0 = unchanged).
|
|
47
47
|
* @param {number} [properties.splatsContrast = 1.0] - optional contrast multiplier. Typical useful range: 0.0 → 2.0 (1.0 = unchanged).
|
|
48
48
|
* @param {Array|Object} [properties.splatsTempTint = [0.0, 0.0]] - optional temperature and tint pair for simple white-balance adjustment. Values: temperature ∈ [-100,100], tint ∈ [-100,100]. Default [0,0].
|
|
49
|
-
* @param {Object} [
|
|
50
|
-
* @param {String} [
|
|
51
|
-
* @param {String} [
|
|
52
|
-
* @param {number} [
|
|
53
|
-
* @param {number} [
|
|
54
|
-
* @param {Array|Vector3} [
|
|
55
|
-
* @param {Array|Vector3} [
|
|
49
|
+
* @param {Object} [properties.physics.sim = undefined] - physics sim helper {@link physics.js}
|
|
50
|
+
* @param {String} [properties.physics.type = fixed] - type: 'dynamic' | 'kinematic' | 'fixed' (default 'fixed')
|
|
51
|
+
* @param {String} [properties.physics.shape = none] - LEGACY single collider shape: 'none' | 'mesh' | 'bounds' | 'hull'. Used only when no advanced collider rules are provided.
|
|
52
|
+
* @param {number} [properties.physics.mass = 1] - mass
|
|
53
|
+
* @param {number} [properties.physics.maxLOD = infinity] - LEGACY global max LOD for constructing colliders. Higher is more accurate and more costly. Only the currently loaded LODs are used.
|
|
54
|
+
* @param {Array|Vector3} [properties.physics.velocity = [0,0,0]] - velocity vector
|
|
55
|
+
* @param {Array|Vector3} [properties.physics.angularVelocity = [0,0,0]] - angular velocity
|
|
56
|
+
*
|
|
57
|
+
* @param {Object} [properties.physics.colliders] - ADVANCED rules to mix different collider types by geometricError or by level (LOD).
|
|
58
|
+
* @param {number} [properties.physics.colliders.maxLOD] - Global LOD cap for colliders. If omitted, falls back to properties.physics.maxLOD, else Infinity.
|
|
59
|
+
* @param {string[]} [properties.physics.colliders.priority=["mesh","hull","bounds"]] - Priority when multiple rules match the same tile. First entry wins.
|
|
60
|
+
* @param {Object[]} [properties.physics.colliders.byGeometricError] - Preferred criterion when provided. Inclusive ranges on geometricError.
|
|
61
|
+
* @param {("mesh"|"hull"|"bounds")} properties.physics.colliders.byGeometricError[].shape - Collider type to use in this range.
|
|
62
|
+
* @param {number} properties.physics.colliders.byGeometricError[].min - Inclusive minimum geometricError for the rule (defaults to -Infinity if omitted).
|
|
63
|
+
* @param {number} properties.physics.colliders.byGeometricError[].max - Exclusive maximum geometricError for the rule (defaults to +Infinity if omitted).
|
|
64
|
+
* @param {Object[]} [properties.physics.colliders.byLevel] - Fallback criterion when byGeometricError is absent/empty. Inclusive ranges on integer level (LOD).
|
|
65
|
+
* @param {("mesh"|"hull"|"bounds")} properties.physics.colliders.byLevel[].shape - Collider type to use in this LOD interval.
|
|
66
|
+
* @param {number} properties.physics.colliders.byLevel[].min - Inclusive minimum LOD (integer).
|
|
67
|
+
* @param {number} properties.physics.colliders.byLevel[].max - Inclusive maximum LOD (integer).
|
|
68
|
+
* @param {("mesh"|"hull"|"bounds")} [properties.physics.colliders.defaultShape] - Optional fallback shape when no rule matches. If omitted, legacy properties.physics.shape is used. If neither present, no collider is created.
|
|
69
|
+
*
|
|
70
|
+
* Selection rules:
|
|
71
|
+
* - If colliders.byGeometricError has entries, it is used exclusively. Otherwise, byLevel is used when present.
|
|
72
|
+
* - If multiple rules match, the first in colliders.priority is chosen (default priority is ["mesh","hull","bounds"]).
|
|
73
|
+
* - If no rule matches, defaultShape is used; if absent, falls back to legacy properties.physics.shape; otherwise no collider is created.
|
|
74
|
+
* - The colliders.maxLOD (or legacy maxLOD) acts as a global cap. Tiles with level > maxLOD never get colliders.
|
|
75
|
+
* - When a tile becomes invisible, existing colliders at level === maxLOD are retained if the tile has children (as a fallback for deeper LODs), identical to legacy behavior.
|
|
76
|
+
* e.g. (physics.colliders):
|
|
77
|
+
* {
|
|
78
|
+
* "maxLOD": 4,
|
|
79
|
+
* "priority": ["mesh", "hull", "bounds"],
|
|
80
|
+
* "byLevel": [
|
|
81
|
+
* { "shape": "mesh", "min": 4, "max": 4 },
|
|
82
|
+
* { "shape": "hull", "min": 3, "max": 3 },
|
|
83
|
+
* { "shape": "bounds", "min": 0, "max": 2 }
|
|
84
|
+
* ],
|
|
85
|
+
* "defaultShape": "bounds"
|
|
86
|
+
* }
|
|
56
87
|
*/
|
|
57
88
|
constructor(properties?: {
|
|
58
89
|
url?: string | undefined;
|