@3dverse/api 0.20.0 → 0.20.1
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/_prebuild/wrapper.d.ts +7 -9
- package/dist/index.js.map +2 -2
- package/dist/index.mjs.map +2 -2
- package/package.json +1 -1
|
@@ -3159,11 +3159,11 @@ export type AssetGenerationOptions = {
|
|
|
3159
3159
|
data_pipeline: 'nav-mesh-baker';
|
|
3160
3160
|
/** List of mesh references with submesh instances for baking, and how Recast bakes it: each setting left out takes its default. The data pipeline scheduler adds the asset's asset_name. All triangles use a default area cost of 1.0 (walkable). */
|
|
3161
3161
|
options: {
|
|
3162
|
-
/** Name of the
|
|
3162
|
+
/** Name of the nav mesh asset (shown in the nav mesh description). Defaults to "nav_mesh" if omitted. */
|
|
3163
3163
|
asset_name?: string;
|
|
3164
3164
|
/** Border around a tile, in voxels */
|
|
3165
3165
|
border_size?: number;
|
|
3166
|
-
/** Axis-aligned bounding box restricting which geometry is baked into the
|
|
3166
|
+
/** Axis-aligned bounding box restricting which geometry is baked into the nav mesh. Triangles outside are discarded; triangles partially inside are clipped. Omit to bake all geometry. */
|
|
3167
3167
|
bounding_box?: {
|
|
3168
3168
|
/** Maximum point of the box */
|
|
3169
3169
|
max: Array<number>;
|
|
@@ -3742,15 +3742,13 @@ export type AssetDescription = {
|
|
|
3742
3742
|
/** Minimum point of the box */
|
|
3743
3743
|
min: Array<number>;
|
|
3744
3744
|
};
|
|
3745
|
-
/** World-space origin of the tile grid (bottom-left corner at layer 0) */
|
|
3746
|
-
gridOrigin: Array<number>;
|
|
3747
3745
|
/** Name of the asset */
|
|
3748
3746
|
name: string;
|
|
3749
|
-
/** Size in bytes of the
|
|
3747
|
+
/** Size in bytes of the payload, the sum of the tiles' payloadSize. */
|
|
3750
3748
|
payloadSize: number;
|
|
3751
3749
|
/** World-space dimensions of each tile: {width along x, height along z, depth along y}. Tiles are square on the xz-plane, so x == y. z is always 0. */
|
|
3752
3750
|
tileDimensions: Array<number>;
|
|
3753
|
-
/** Description of each tile of the grid holding walkable area
|
|
3751
|
+
/** Description of each tile of the grid holding walkable area. The payload stores the tiles back to back, in this order, each taking its payloadSize bytes. */
|
|
3754
3752
|
tiles: Array<{
|
|
3755
3753
|
/** World-space axis-aligned bounding box of this tile. */
|
|
3756
3754
|
boundingBox: {
|
|
@@ -3761,7 +3759,7 @@ export type AssetDescription = {
|
|
|
3761
3759
|
};
|
|
3762
3760
|
/** Grid position within the tile grid. */
|
|
3763
3761
|
gridPosition: Array<number>;
|
|
3764
|
-
/** Size in bytes of
|
|
3762
|
+
/** Size in bytes of this tile's data within the payload. */
|
|
3765
3763
|
payloadSize: number;
|
|
3766
3764
|
}>;
|
|
3767
3765
|
/** Unique identifier for the asset */
|
|
@@ -10466,11 +10464,11 @@ export declare function createImport({ folder_id, body, }: {
|
|
|
10466
10464
|
data_pipeline: 'nav-mesh-baker';
|
|
10467
10465
|
/** List of mesh references with submesh instances for baking, and how Recast bakes it: each setting left out takes its default. The data pipeline scheduler adds the asset's asset_name. All triangles use a default area cost of 1.0 (walkable). */
|
|
10468
10466
|
options: {
|
|
10469
|
-
/** Name of the
|
|
10467
|
+
/** Name of the nav mesh asset (shown in the nav mesh description). Defaults to "nav_mesh" if omitted. */
|
|
10470
10468
|
asset_name?: string;
|
|
10471
10469
|
/** Border around a tile, in voxels */
|
|
10472
10470
|
border_size?: number;
|
|
10473
|
-
/** Axis-aligned bounding box restricting which geometry is baked into the
|
|
10471
|
+
/** Axis-aligned bounding box restricting which geometry is baked into the nav mesh. Triangles outside are discarded; triangles partially inside are clipped. Omit to bake all geometry. */
|
|
10474
10472
|
bounding_box?: {
|
|
10475
10473
|
/** Maximum point of the box */
|
|
10476
10474
|
max: Array<number>;
|