hytopia 0.6.27 → 0.6.29

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.
@@ -517,6 +517,18 @@ Creates a collider options object from a modelUri with best approximate shape an
517
517
  Removes the collider from the simulation.
518
518
 
519
519
 
520
+ </td></tr>
521
+ <tr><td>
522
+
523
+ [scale(scalar)](./server.collider.scale.md)
524
+
525
+
526
+ </td><td>
527
+
528
+
529
+ </td><td>
530
+
531
+
520
532
  </td></tr>
521
533
  <tr><td>
522
534
 
@@ -0,0 +1,49 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [Collider](./server.collider.md) &gt; [scale](./server.collider.scale.md)
4
+
5
+ ## Collider.scale() method
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ scale(scalar: number): void;
11
+ ```
12
+
13
+ ## Parameters
14
+
15
+ <table><thead><tr><th>
16
+
17
+ Parameter
18
+
19
+
20
+ </th><th>
21
+
22
+ Type
23
+
24
+
25
+ </th><th>
26
+
27
+ Description
28
+
29
+
30
+ </th></tr></thead>
31
+ <tbody><tr><td>
32
+
33
+ scalar
34
+
35
+
36
+ </td><td>
37
+
38
+ number
39
+
40
+
41
+ </td><td>
42
+
43
+
44
+ </td></tr>
45
+ </tbody></table>
46
+ **Returns:**
47
+
48
+ void
49
+
@@ -727,6 +727,20 @@ Sets the playback rate of all animations on the entity's model.
727
727
  Sets the nodes to hide on the entity's model. Matched nodes will be hidden for all players. Uses case insensitive substring matching.
728
728
 
729
729
 
730
+ </td></tr>
731
+ <tr><td>
732
+
733
+ [setModelScale(modelScale)](./server.entity.setmodelscale.md)
734
+
735
+
736
+ </td><td>
737
+
738
+
739
+ </td><td>
740
+
741
+ Sets the scale of the entity's model and proportionally scales its colliders.
742
+
743
+
730
744
  </td></tr>
731
745
  <tr><td>
732
746
 
@@ -0,0 +1,53 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [Entity](./server.entity.md) &gt; [setModelScale](./server.entity.setmodelscale.md)
4
+
5
+ ## Entity.setModelScale() method
6
+
7
+ Sets the scale of the entity's model and proportionally scales its colliders.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ setModelScale(modelScale: number): void;
13
+ ```
14
+
15
+ ## Parameters
16
+
17
+ <table><thead><tr><th>
18
+
19
+ Parameter
20
+
21
+
22
+ </th><th>
23
+
24
+ Type
25
+
26
+
27
+ </th><th>
28
+
29
+ Description
30
+
31
+
32
+ </th></tr></thead>
33
+ <tbody><tr><td>
34
+
35
+ modelScale
36
+
37
+
38
+ </td><td>
39
+
40
+ number
41
+
42
+
43
+ </td><td>
44
+
45
+ The scale of the entity's model.
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
50
+ **Returns:**
51
+
52
+ void
53
+
@@ -127,6 +127,20 @@ SET\_MODEL\_HIDDEN\_NODES
127
127
  </td><td>
128
128
 
129
129
 
130
+ </td></tr>
131
+ <tr><td>
132
+
133
+ SET\_MODEL\_SCALE
134
+
135
+
136
+ </td><td>
137
+
138
+ `"ENTITY.SET_MODEL_SCALE"`
139
+
140
+
141
+ </td><td>
142
+
143
+
130
144
  </td></tr>
131
145
  <tr><td>
132
146
 
@@ -0,0 +1,16 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [EntityEventPayloads](./server.entityeventpayloads.md) &gt; ["ENTITY.SET\_MODEL\_SCALE"](./server.entityeventpayloads._entity.set_model_scale_.md)
4
+
5
+ ## EntityEventPayloads."ENTITY.SET\_MODEL\_SCALE" property
6
+
7
+ Emitted when the scale of the entity's model is set.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ [EntityEvent.SET_MODEL_SCALE]: {
13
+ entity: Entity;
14
+ modelScale: number;
15
+ };
16
+ ```
@@ -167,6 +167,25 @@ Emitted when the playback rate of the entity's model animations is set.
167
167
  Emitted when nodes of the entity's model are set to be hidden.
168
168
 
169
169
 
170
+ </td></tr>
171
+ <tr><td>
172
+
173
+ ["ENTITY.SET\_MODEL\_SCALE"](./server.entityeventpayloads._entity.set_model_scale_.md)
174
+
175
+
176
+ </td><td>
177
+
178
+
179
+ </td><td>
180
+
181
+ { entity: [Entity](./server.entity.md)<!-- -->; modelScale: number; }
182
+
183
+
184
+ </td><td>
185
+
186
+ Emitted when the scale of the entity's model is set.
187
+
188
+
170
189
  </td></tr>
171
190
  <tr><td>
172
191
 
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [World](./server.world.md) &gt; [fogColor](./server.world.fogcolor.md)
4
+
5
+ ## World.fogColor property
6
+
7
+ The color of the fog, if not explicitly set, defaults to ambient light color.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ get fogColor(): RgbColor | undefined;
13
+ ```
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [World](./server.world.md) &gt; [fogFar](./server.world.fogfar.md)
4
+
5
+ ## World.fogFar property
6
+
7
+ The maximum distance from the camera at which fog stops being applied.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ get fogFar(): number;
13
+ ```
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [World](./server.world.md) &gt; [fogNear](./server.world.fognear.md)
4
+
5
+ ## World.fogNear property
6
+
7
+ The minimum distance from the camera to start applying fog.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ get fogNear(): number;
13
+ ```
@@ -300,6 +300,69 @@ The position the directional light originates from.
300
300
  The entity manager for the world.
301
301
 
302
302
 
303
+ </td></tr>
304
+ <tr><td>
305
+
306
+ [fogColor](./server.world.fogcolor.md)
307
+
308
+
309
+ </td><td>
310
+
311
+ `readonly`
312
+
313
+
314
+ </td><td>
315
+
316
+ [RgbColor](./server.rgbcolor.md) \| undefined
317
+
318
+
319
+ </td><td>
320
+
321
+ The color of the fog, if not explicitly set, defaults to ambient light color.
322
+
323
+
324
+ </td></tr>
325
+ <tr><td>
326
+
327
+ [fogFar](./server.world.fogfar.md)
328
+
329
+
330
+ </td><td>
331
+
332
+ `readonly`
333
+
334
+
335
+ </td><td>
336
+
337
+ number
338
+
339
+
340
+ </td><td>
341
+
342
+ The maximum distance from the camera at which fog stops being applied.
343
+
344
+
345
+ </td></tr>
346
+ <tr><td>
347
+
348
+ [fogNear](./server.world.fognear.md)
349
+
350
+
351
+ </td><td>
352
+
353
+ `readonly`
354
+
355
+
356
+ </td><td>
357
+
358
+ number
359
+
360
+
361
+ </td><td>
362
+
363
+ The minimum distance from the camera to start applying fog.
364
+
365
+
303
366
  </td></tr>
304
367
  <tr><td>
305
368
 
@@ -593,6 +656,48 @@ Sets the intensity of the world's directional light.
593
656
  Sets the position the world's directional light originates from.
594
657
 
595
658
 
659
+ </td></tr>
660
+ <tr><td>
661
+
662
+ [setFogColor(color)](./server.world.setfogcolor.md)
663
+
664
+
665
+ </td><td>
666
+
667
+
668
+ </td><td>
669
+
670
+ Sets the color of the world's fog.
671
+
672
+
673
+ </td></tr>
674
+ <tr><td>
675
+
676
+ [setFogFar(far)](./server.world.setfogfar.md)
677
+
678
+
679
+ </td><td>
680
+
681
+
682
+ </td><td>
683
+
684
+ Sets the maximum distance from the camera at which fog stops being applied.
685
+
686
+
687
+ </td></tr>
688
+ <tr><td>
689
+
690
+ [setFogNear(near)](./server.world.setfognear.md)
691
+
692
+
693
+ </td><td>
694
+
695
+
696
+ </td><td>
697
+
698
+ Sets the minimum distance from the camera to start applying fog.
699
+
700
+
596
701
  </td></tr>
597
702
  <tr><td>
598
703
 
@@ -0,0 +1,53 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [World](./server.world.md) &gt; [setFogColor](./server.world.setfogcolor.md)
4
+
5
+ ## World.setFogColor() method
6
+
7
+ Sets the color of the world's fog.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ setFogColor(color: RgbColor | undefined): void;
13
+ ```
14
+
15
+ ## Parameters
16
+
17
+ <table><thead><tr><th>
18
+
19
+ Parameter
20
+
21
+
22
+ </th><th>
23
+
24
+ Type
25
+
26
+
27
+ </th><th>
28
+
29
+ Description
30
+
31
+
32
+ </th></tr></thead>
33
+ <tbody><tr><td>
34
+
35
+ color
36
+
37
+
38
+ </td><td>
39
+
40
+ [RgbColor](./server.rgbcolor.md) \| undefined
41
+
42
+
43
+ </td><td>
44
+
45
+ The color of the fog, or undefined to reset to ambient light color.
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
50
+ **Returns:**
51
+
52
+ void
53
+
@@ -0,0 +1,53 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [World](./server.world.md) &gt; [setFogFar](./server.world.setfogfar.md)
4
+
5
+ ## World.setFogFar() method
6
+
7
+ Sets the maximum distance from the camera at which fog stops being applied.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ setFogFar(far: number): void;
13
+ ```
14
+
15
+ ## Parameters
16
+
17
+ <table><thead><tr><th>
18
+
19
+ Parameter
20
+
21
+
22
+ </th><th>
23
+
24
+ Type
25
+
26
+
27
+ </th><th>
28
+
29
+ Description
30
+
31
+
32
+ </th></tr></thead>
33
+ <tbody><tr><td>
34
+
35
+ far
36
+
37
+
38
+ </td><td>
39
+
40
+ number
41
+
42
+
43
+ </td><td>
44
+
45
+ The far distance.
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
50
+ **Returns:**
51
+
52
+ void
53
+
@@ -0,0 +1,53 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [World](./server.world.md) &gt; [setFogNear](./server.world.setfognear.md)
4
+
5
+ ## World.setFogNear() method
6
+
7
+ Sets the minimum distance from the camera to start applying fog.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ setFogNear(near: number): void;
13
+ ```
14
+
15
+ ## Parameters
16
+
17
+ <table><thead><tr><th>
18
+
19
+ Parameter
20
+
21
+
22
+ </th><th>
23
+
24
+ Type
25
+
26
+
27
+ </th><th>
28
+
29
+ Description
30
+
31
+
32
+ </th></tr></thead>
33
+ <tbody><tr><td>
34
+
35
+ near
36
+
37
+
38
+ </td><td>
39
+
40
+ number
41
+
42
+
43
+ </td><td>
44
+
45
+ The near distance.
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
50
+ **Returns:**
51
+
52
+ void
53
+
@@ -99,6 +99,48 @@ SET\_DIRECTIONAL\_LIGHT\_POSITION
99
99
  </td><td>
100
100
 
101
101
 
102
+ </td></tr>
103
+ <tr><td>
104
+
105
+ SET\_FOG\_COLOR
106
+
107
+
108
+ </td><td>
109
+
110
+ `"WORLD.SET_FOG_COLOR"`
111
+
112
+
113
+ </td><td>
114
+
115
+
116
+ </td></tr>
117
+ <tr><td>
118
+
119
+ SET\_FOG\_FAR
120
+
121
+
122
+ </td><td>
123
+
124
+ `"WORLD.SET_FOG_FAR"`
125
+
126
+
127
+ </td><td>
128
+
129
+
130
+ </td></tr>
131
+ <tr><td>
132
+
133
+ SET\_FOG\_NEAR
134
+
135
+
136
+ </td><td>
137
+
138
+ `"WORLD.SET_FOG_NEAR"`
139
+
140
+
141
+ </td><td>
142
+
143
+
102
144
  </td></tr>
103
145
  <tr><td>
104
146
 
@@ -0,0 +1,16 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [WorldEventPayloads](./server.worldeventpayloads.md) &gt; ["WORLD.SET\_FOG\_COLOR"](./server.worldeventpayloads._world.set_fog_color_.md)
4
+
5
+ ## WorldEventPayloads."WORLD.SET\_FOG\_COLOR" property
6
+
7
+ Emitted when the color of the world's fog is set.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ [WorldEvent.SET_FOG_COLOR]: {
13
+ world: World;
14
+ color: RgbColor;
15
+ };
16
+ ```
@@ -0,0 +1,16 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [WorldEventPayloads](./server.worldeventpayloads.md) &gt; ["WORLD.SET\_FOG\_FAR"](./server.worldeventpayloads._world.set_fog_far_.md)
4
+
5
+ ## WorldEventPayloads."WORLD.SET\_FOG\_FAR" property
6
+
7
+ Emitted when the density of the world's fog is set.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ [WorldEvent.SET_FOG_FAR]: {
13
+ world: World;
14
+ far: number;
15
+ };
16
+ ```
@@ -0,0 +1,16 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [WorldEventPayloads](./server.worldeventpayloads.md) &gt; ["WORLD.SET\_FOG\_NEAR"](./server.worldeventpayloads._world.set_fog_near_.md)
4
+
5
+ ## WorldEventPayloads."WORLD.SET\_FOG\_NEAR" property
6
+
7
+ Emitted when the density of the world's fog is set.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ [WorldEvent.SET_FOG_NEAR]: {
13
+ world: World;
14
+ near: number;
15
+ };
16
+ ```
@@ -129,6 +129,63 @@ Emitted when the intensity of the world's directional light is set.
129
129
  Emitted when the position of the world's directional light is set.
130
130
 
131
131
 
132
+ </td></tr>
133
+ <tr><td>
134
+
135
+ ["WORLD.SET\_FOG\_COLOR"](./server.worldeventpayloads._world.set_fog_color_.md)
136
+
137
+
138
+ </td><td>
139
+
140
+
141
+ </td><td>
142
+
143
+ { world: [World](./server.world.md)<!-- -->; color: [RgbColor](./server.rgbcolor.md)<!-- -->; }
144
+
145
+
146
+ </td><td>
147
+
148
+ Emitted when the color of the world's fog is set.
149
+
150
+
151
+ </td></tr>
152
+ <tr><td>
153
+
154
+ ["WORLD.SET\_FOG\_FAR"](./server.worldeventpayloads._world.set_fog_far_.md)
155
+
156
+
157
+ </td><td>
158
+
159
+
160
+ </td><td>
161
+
162
+ { world: [World](./server.world.md)<!-- -->; far: number; }
163
+
164
+
165
+ </td><td>
166
+
167
+ Emitted when the density of the world's fog is set.
168
+
169
+
170
+ </td></tr>
171
+ <tr><td>
172
+
173
+ ["WORLD.SET\_FOG\_NEAR"](./server.worldeventpayloads._world.set_fog_near_.md)
174
+
175
+
176
+ </td><td>
177
+
178
+
179
+ </td><td>
180
+
181
+ { world: [World](./server.world.md)<!-- -->; near: number; }
182
+
183
+
184
+ </td><td>
185
+
186
+ Emitted when the density of the world's fog is set.
187
+
188
+
132
189
  </td></tr>
133
190
  <tr><td>
134
191