hytopia 0.10.19 → 0.10.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/docs/server.chunklattice.initializeblocks.md +56 -0
- package/docs/server.chunklattice.md +14 -0
- package/docs/server.rigidbody.md +0 -42
- package/package.json +1 -1
- package/server.api.json +57 -70
- package/server.d.ts +9 -4
- package/server.mjs +150 -150
- package/docs/server.rigidbody.effectiveworldinverseprincipalangularinertiasqrt.md +0 -13
- package/docs/server.rigidbody.inverseprincipalangularinertiasqrt.md +0 -13
@@ -0,0 +1,56 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [ChunkLattice](./server.chunklattice.md) > [initializeBlocks](./server.chunklattice.initializeblocks.md)
|
4
|
+
|
5
|
+
## ChunkLattice.initializeBlocks() method
|
6
|
+
|
7
|
+
Initialize all blocks in the lattice in bulk, removing all previously existing blocks. This is much more efficient than setting each block individually.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
initializeBlocks(blocks: {
|
13
|
+
[blockTypeId: number]: Vector3Like[];
|
14
|
+
}): void;
|
15
|
+
```
|
16
|
+
|
17
|
+
## Parameters
|
18
|
+
|
19
|
+
<table><thead><tr><th>
|
20
|
+
|
21
|
+
Parameter
|
22
|
+
|
23
|
+
|
24
|
+
</th><th>
|
25
|
+
|
26
|
+
Type
|
27
|
+
|
28
|
+
|
29
|
+
</th><th>
|
30
|
+
|
31
|
+
Description
|
32
|
+
|
33
|
+
|
34
|
+
</th></tr></thead>
|
35
|
+
<tbody><tr><td>
|
36
|
+
|
37
|
+
blocks
|
38
|
+
|
39
|
+
|
40
|
+
</td><td>
|
41
|
+
|
42
|
+
{ \[blockTypeId: number\]: [Vector3Like](./server.vector3like.md)<!-- -->\[\]; }
|
43
|
+
|
44
|
+
|
45
|
+
</td><td>
|
46
|
+
|
47
|
+
The blocks to initialize.
|
48
|
+
|
49
|
+
|
50
|
+
</td></tr>
|
51
|
+
</tbody></table>
|
52
|
+
|
53
|
+
**Returns:**
|
54
|
+
|
55
|
+
void
|
56
|
+
|
@@ -240,6 +240,20 @@ Check if a block exists at a specific global coordinate.
|
|
240
240
|
Check if a chunk exists for a given global coordinate.
|
241
241
|
|
242
242
|
|
243
|
+
</td></tr>
|
244
|
+
<tr><td>
|
245
|
+
|
246
|
+
[initializeBlocks(blocks)](./server.chunklattice.initializeblocks.md)
|
247
|
+
|
248
|
+
|
249
|
+
</td><td>
|
250
|
+
|
251
|
+
|
252
|
+
</td><td>
|
253
|
+
|
254
|
+
Initialize all blocks in the lattice in bulk, removing all previously existing blocks. This is much more efficient than setting each block individually.
|
255
|
+
|
256
|
+
|
243
257
|
</td></tr>
|
244
258
|
<tr><td>
|
245
259
|
|
package/docs/server.rigidbody.md
CHANGED
@@ -262,27 +262,6 @@ The effective angular inertia of the rigid body.
|
|
262
262
|
The effective inverse mass of the rigid body.
|
263
263
|
|
264
264
|
|
265
|
-
</td></tr>
|
266
|
-
<tr><td>
|
267
|
-
|
268
|
-
[effectiveWorldInversePrincipalAngularInertiaSqrt](./server.rigidbody.effectiveworldinverseprincipalangularinertiasqrt.md)
|
269
|
-
|
270
|
-
|
271
|
-
</td><td>
|
272
|
-
|
273
|
-
`readonly`
|
274
|
-
|
275
|
-
|
276
|
-
</td><td>
|
277
|
-
|
278
|
-
[SpdMatrix3](./server.spdmatrix3.md) \| undefined
|
279
|
-
|
280
|
-
|
281
|
-
</td><td>
|
282
|
-
|
283
|
-
The effective world inverse principal angular inertia square root of the rigid body.
|
284
|
-
|
285
|
-
|
286
265
|
</td></tr>
|
287
266
|
<tr><td>
|
288
267
|
|
@@ -367,27 +346,6 @@ number \| undefined
|
|
367
346
|
The inverse mass of the rigid body.
|
368
347
|
|
369
348
|
|
370
|
-
</td></tr>
|
371
|
-
<tr><td>
|
372
|
-
|
373
|
-
[inversePrincipalAngularInertiaSqrt](./server.rigidbody.inverseprincipalangularinertiasqrt.md)
|
374
|
-
|
375
|
-
|
376
|
-
</td><td>
|
377
|
-
|
378
|
-
`readonly`
|
379
|
-
|
380
|
-
|
381
|
-
</td><td>
|
382
|
-
|
383
|
-
[Vector3Like](./server.vector3like.md) \| undefined
|
384
|
-
|
385
|
-
|
386
|
-
</td><td>
|
387
|
-
|
388
|
-
The inverse principal angular inertia square root of the rigid body.
|
389
|
-
|
390
|
-
|
391
349
|
</td></tr>
|
392
350
|
<tr><td>
|
393
351
|
|
package/package.json
CHANGED
package/server.api.json
CHANGED
@@ -7527,6 +7527,63 @@
|
|
7527
7527
|
"isAbstract": false,
|
7528
7528
|
"name": "hasChunk"
|
7529
7529
|
},
|
7530
|
+
{
|
7531
|
+
"kind": "Method",
|
7532
|
+
"canonicalReference": "server!ChunkLattice#initializeBlocks:member(1)",
|
7533
|
+
"docComment": "/**\n * Initialize all blocks in the lattice in bulk, removing all previously existing blocks. This is much more efficient than setting each block individually.\n *\n * @param blocks - The blocks to initialize.\n */\n",
|
7534
|
+
"excerptTokens": [
|
7535
|
+
{
|
7536
|
+
"kind": "Content",
|
7537
|
+
"text": "initializeBlocks(blocks: "
|
7538
|
+
},
|
7539
|
+
{
|
7540
|
+
"kind": "Content",
|
7541
|
+
"text": "{\n [blockTypeId: number]: "
|
7542
|
+
},
|
7543
|
+
{
|
7544
|
+
"kind": "Reference",
|
7545
|
+
"text": "Vector3Like",
|
7546
|
+
"canonicalReference": "server!Vector3Like:interface"
|
7547
|
+
},
|
7548
|
+
{
|
7549
|
+
"kind": "Content",
|
7550
|
+
"text": "[];\n }"
|
7551
|
+
},
|
7552
|
+
{
|
7553
|
+
"kind": "Content",
|
7554
|
+
"text": "): "
|
7555
|
+
},
|
7556
|
+
{
|
7557
|
+
"kind": "Content",
|
7558
|
+
"text": "void"
|
7559
|
+
},
|
7560
|
+
{
|
7561
|
+
"kind": "Content",
|
7562
|
+
"text": ";"
|
7563
|
+
}
|
7564
|
+
],
|
7565
|
+
"isStatic": false,
|
7566
|
+
"returnTypeTokenRange": {
|
7567
|
+
"startIndex": 5,
|
7568
|
+
"endIndex": 6
|
7569
|
+
},
|
7570
|
+
"releaseTag": "Public",
|
7571
|
+
"isProtected": false,
|
7572
|
+
"overloadIndex": 1,
|
7573
|
+
"parameters": [
|
7574
|
+
{
|
7575
|
+
"parameterName": "blocks",
|
7576
|
+
"parameterTypeTokenRange": {
|
7577
|
+
"startIndex": 1,
|
7578
|
+
"endIndex": 4
|
7579
|
+
},
|
7580
|
+
"isOptional": false
|
7581
|
+
}
|
7582
|
+
],
|
7583
|
+
"isOptional": false,
|
7584
|
+
"isAbstract": false,
|
7585
|
+
"name": "initializeBlocks"
|
7586
|
+
},
|
7530
7587
|
{
|
7531
7588
|
"kind": "Method",
|
7532
7589
|
"canonicalReference": "server!ChunkLattice#setBlock:member(1)",
|
@@ -43046,41 +43103,6 @@
|
|
43046
43103
|
"isProtected": false,
|
43047
43104
|
"isAbstract": false
|
43048
43105
|
},
|
43049
|
-
{
|
43050
|
-
"kind": "Property",
|
43051
|
-
"canonicalReference": "server!RigidBody#effectiveWorldInversePrincipalAngularInertiaSqrt:member",
|
43052
|
-
"docComment": "/**\n * The effective world inverse principal angular inertia square root of the rigid body.\n */\n",
|
43053
|
-
"excerptTokens": [
|
43054
|
-
{
|
43055
|
-
"kind": "Content",
|
43056
|
-
"text": "get effectiveWorldInversePrincipalAngularInertiaSqrt(): "
|
43057
|
-
},
|
43058
|
-
{
|
43059
|
-
"kind": "Reference",
|
43060
|
-
"text": "SpdMatrix3",
|
43061
|
-
"canonicalReference": "server!SpdMatrix3:interface"
|
43062
|
-
},
|
43063
|
-
{
|
43064
|
-
"kind": "Content",
|
43065
|
-
"text": " | undefined"
|
43066
|
-
},
|
43067
|
-
{
|
43068
|
-
"kind": "Content",
|
43069
|
-
"text": ";"
|
43070
|
-
}
|
43071
|
-
],
|
43072
|
-
"isReadonly": true,
|
43073
|
-
"isOptional": false,
|
43074
|
-
"releaseTag": "Public",
|
43075
|
-
"name": "effectiveWorldInversePrincipalAngularInertiaSqrt",
|
43076
|
-
"propertyTypeTokenRange": {
|
43077
|
-
"startIndex": 1,
|
43078
|
-
"endIndex": 3
|
43079
|
-
},
|
43080
|
-
"isStatic": false,
|
43081
|
-
"isProtected": false,
|
43082
|
-
"isAbstract": false
|
43083
|
-
},
|
43084
43106
|
{
|
43085
43107
|
"kind": "Property",
|
43086
43108
|
"canonicalReference": "server!RigidBody#enabledPositions:member",
|
@@ -43256,41 +43278,6 @@
|
|
43256
43278
|
"isProtected": false,
|
43257
43279
|
"isAbstract": false
|
43258
43280
|
},
|
43259
|
-
{
|
43260
|
-
"kind": "Property",
|
43261
|
-
"canonicalReference": "server!RigidBody#inversePrincipalAngularInertiaSqrt:member",
|
43262
|
-
"docComment": "/**\n * The inverse principal angular inertia square root of the rigid body.\n */\n",
|
43263
|
-
"excerptTokens": [
|
43264
|
-
{
|
43265
|
-
"kind": "Content",
|
43266
|
-
"text": "get inversePrincipalAngularInertiaSqrt(): "
|
43267
|
-
},
|
43268
|
-
{
|
43269
|
-
"kind": "Reference",
|
43270
|
-
"text": "Vector3Like",
|
43271
|
-
"canonicalReference": "server!Vector3Like:interface"
|
43272
|
-
},
|
43273
|
-
{
|
43274
|
-
"kind": "Content",
|
43275
|
-
"text": " | undefined"
|
43276
|
-
},
|
43277
|
-
{
|
43278
|
-
"kind": "Content",
|
43279
|
-
"text": ";"
|
43280
|
-
}
|
43281
|
-
],
|
43282
|
-
"isReadonly": true,
|
43283
|
-
"isOptional": false,
|
43284
|
-
"releaseTag": "Public",
|
43285
|
-
"name": "inversePrincipalAngularInertiaSqrt",
|
43286
|
-
"propertyTypeTokenRange": {
|
43287
|
-
"startIndex": 1,
|
43288
|
-
"endIndex": 3
|
43289
|
-
},
|
43290
|
-
"isStatic": false,
|
43291
|
-
"isProtected": false,
|
43292
|
-
"isAbstract": false
|
43293
|
-
},
|
43294
43281
|
{
|
43295
43282
|
"kind": "Property",
|
43296
43283
|
"canonicalReference": "server!RigidBody#isCcdEnabled:member",
|
package/server.d.ts
CHANGED
@@ -994,6 +994,15 @@ export declare class ChunkLattice extends EventRouter {
|
|
994
994
|
* @returns Whether the chunk exists.
|
995
995
|
*/
|
996
996
|
hasChunk(globalCoordinate: Vector3Like): boolean;
|
997
|
+
/**
|
998
|
+
* Initialize all blocks in the lattice in bulk, removing
|
999
|
+
* all previously existing blocks. This is much more
|
1000
|
+
* efficient than setting each block individually.
|
1001
|
+
* @param blocks - The blocks to initialize.
|
1002
|
+
*/
|
1003
|
+
initializeBlocks(blocks: {
|
1004
|
+
[blockTypeId: number]: Vector3Like[];
|
1005
|
+
}): void;
|
997
1006
|
/**
|
998
1007
|
* Set the block at a global coordinate by block type id, automatically
|
999
1008
|
* creating a chunk if it doesn't exist. Use block type id 0 for air (to remove a block).
|
@@ -5310,8 +5319,6 @@ export declare class RigidBody extends EventRouter {
|
|
5310
5319
|
get effectiveAngularInertia(): SpdMatrix3 | undefined;
|
5311
5320
|
/** The effective inverse mass of the rigid body. */
|
5312
5321
|
get effectiveInverseMass(): Vector3Like | undefined;
|
5313
|
-
/** The effective world inverse principal angular inertia square root of the rigid body. */
|
5314
|
-
get effectiveWorldInversePrincipalAngularInertiaSqrt(): SpdMatrix3 | undefined;
|
5315
5322
|
/** The enabled axes of rotational movement of the rigid body. */
|
5316
5323
|
get enabledRotations(): Vector3Boolean;
|
5317
5324
|
/** The enabled axes of positional movement of the rigid body. */
|
@@ -5320,8 +5327,6 @@ export declare class RigidBody extends EventRouter {
|
|
5320
5327
|
get gravityScale(): number;
|
5321
5328
|
/** The inverse mass of the rigid body. */
|
5322
5329
|
get inverseMass(): number | undefined;
|
5323
|
-
/** The inverse principal angular inertia square root of the rigid body. */
|
5324
|
-
get inversePrincipalAngularInertiaSqrt(): Vector3Like | undefined;
|
5325
5330
|
/** Whether the rigid body has continuous collision detection enabled. */
|
5326
5331
|
get isCcdEnabled(): boolean;
|
5327
5332
|
/** Whether the rigid body is dynamic. */
|