hytopia 0.6.28 → 0.6.30
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/bun-server.mjs +31 -31
- package/docs/server.collider.md +12 -0
- package/docs/server.collider.scale.md +49 -0
- package/docs/server.entity.md +14 -0
- package/docs/server.entity.setmodelscale.md +53 -0
- package/docs/server.entityevent.md +14 -0
- package/docs/server.entityeventpayloads._entity.set_model_scale_.md +16 -0
- package/docs/server.entityeventpayloads.md +19 -0
- package/node-server.mjs +4 -4
- package/package.json +1 -1
- package/server.api.json +162 -0
- package/server.d.ts +15 -0
package/docs/server.collider.md
CHANGED
|
@@ -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) > [server](./server.md) > [Collider](./server.collider.md) > [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
|
+
|
package/docs/server.entity.md
CHANGED
|
@@ -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) > [server](./server.md) > [Entity](./server.entity.md) > [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
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [server](./server.md) > [EntityEventPayloads](./server.entityeventpayloads.md) > ["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
|
|