hytopia 0.5.6-dev15 → 0.5.6-dev17

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.
@@ -9,5 +9,5 @@ The collider options for the block type.
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- get colliderOptions(): TrimeshColliderOptions;
12
+ get colliderOptions(): VoxelsColliderOptions;
13
13
  ```
@@ -107,7 +107,7 @@ Description
107
107
 
108
108
  </td><td>
109
109
 
110
- [TrimeshColliderOptions](./server.trimeshcollideroptions.md)
110
+ [VoxelsColliderOptions](./server.voxelscollideroptions.md)
111
111
 
112
112
 
113
113
  </td><td>
@@ -9,5 +9,5 @@ The custom collider options for the block type.
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- customColliderOptions?: TrimeshColliderOptions;
12
+ customColliderOptions?: VoxelsColliderOptions;
13
13
  ```
@@ -45,7 +45,7 @@ Description
45
45
 
46
46
  </td><td>
47
47
 
48
- [TrimeshColliderOptions](./server.trimeshcollideroptions.md)
48
+ [VoxelsColliderOptions](./server.voxelscollideroptions.md)
49
49
 
50
50
 
51
51
  </td><td>
@@ -664,5 +664,19 @@ Sets whether the collider is a sensor.
664
664
  Sets the tag of the collider.
665
665
 
666
666
 
667
+ </td></tr>
668
+ <tr><td>
669
+
670
+ [setVoxel(coordinate, filled)](./server.collider.setvoxel.md)
671
+
672
+
673
+ </td><td>
674
+
675
+
676
+ </td><td>
677
+
678
+ Sets the voxel at the given coordinate as filled or not filled.
679
+
680
+
667
681
  </td></tr>
668
682
  </tbody></table>
@@ -0,0 +1,69 @@
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; [setVoxel](./server.collider.setvoxel.md)
4
+
5
+ ## Collider.setVoxel() method
6
+
7
+ Sets the voxel at the given coordinate as filled or not filled.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ setVoxel(coordinate: Vector3Like, filled: boolean): 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
+ coordinate
36
+
37
+
38
+ </td><td>
39
+
40
+ [Vector3Like](./server.vector3like.md)
41
+
42
+
43
+ </td><td>
44
+
45
+ The coordinate of the voxel to set.
46
+
47
+
48
+ </td></tr>
49
+ <tr><td>
50
+
51
+ filled
52
+
53
+
54
+ </td><td>
55
+
56
+ boolean
57
+
58
+
59
+ </td><td>
60
+
61
+ True if the voxel at the coordinate should be filled, false if it should be removed.
62
+
63
+
64
+ </td></tr>
65
+ </tbody></table>
66
+ **Returns:**
67
+
68
+ void
69
+
@@ -9,7 +9,7 @@ The options for a collider.
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- export type ColliderOptions = BallColliderOptions | BlockColliderOptions | CapsuleColliderOptions | ConeColliderOptions | CylinderColliderOptions | RoundCylinderColliderOptions | TrimeshColliderOptions | WedgeColliderOptions | NoneColliderOptions;
12
+ export type ColliderOptions = BallColliderOptions | BlockColliderOptions | CapsuleColliderOptions | ConeColliderOptions | CylinderColliderOptions | RoundCylinderColliderOptions | TrimeshColliderOptions | VoxelsColliderOptions | WedgeColliderOptions | NoneColliderOptions;
13
13
  ```
14
- **References:** [BallColliderOptions](./server.ballcollideroptions.md)<!-- -->, [BlockColliderOptions](./server.blockcollideroptions.md)<!-- -->, [CapsuleColliderOptions](./server.capsulecollideroptions.md)<!-- -->, [ConeColliderOptions](./server.conecollideroptions.md)<!-- -->, [CylinderColliderOptions](./server.cylindercollideroptions.md)<!-- -->, [RoundCylinderColliderOptions](./server.roundcylindercollideroptions.md)<!-- -->, [TrimeshColliderOptions](./server.trimeshcollideroptions.md)<!-- -->, [WedgeColliderOptions](./server.wedgecollideroptions.md)<!-- -->, [NoneColliderOptions](./server.nonecollideroptions.md)
14
+ **References:** [BallColliderOptions](./server.ballcollideroptions.md)<!-- -->, [BlockColliderOptions](./server.blockcollideroptions.md)<!-- -->, [CapsuleColliderOptions](./server.capsulecollideroptions.md)<!-- -->, [ConeColliderOptions](./server.conecollideroptions.md)<!-- -->, [CylinderColliderOptions](./server.cylindercollideroptions.md)<!-- -->, [RoundCylinderColliderOptions](./server.roundcylindercollideroptions.md)<!-- -->, [TrimeshColliderOptions](./server.trimeshcollideroptions.md)<!-- -->, [VoxelsColliderOptions](./server.voxelscollideroptions.md)<!-- -->, [WedgeColliderOptions](./server.wedgecollideroptions.md)<!-- -->, [NoneColliderOptions](./server.nonecollideroptions.md)
15
15
 
@@ -141,6 +141,20 @@ TRIMESH
141
141
  </td><td>
142
142
 
143
143
 
144
+ </td></tr>
145
+ <tr><td>
146
+
147
+ VOXELS
148
+
149
+
150
+ </td><td>
151
+
152
+ `"voxels"`
153
+
154
+
155
+ </td><td>
156
+
157
+
144
158
  </td></tr>
145
159
  <tr><td>
146
160
 
package/docs/server.md CHANGED
@@ -1308,6 +1308,17 @@ A 3-dimensional vector of boolean values.
1308
1308
  A 3-dimensional vector.
1309
1309
 
1310
1310
 
1311
+ </td></tr>
1312
+ <tr><td>
1313
+
1314
+ [VoxelsColliderOptions](./server.voxelscollideroptions.md)
1315
+
1316
+
1317
+ </td><td>
1318
+
1319
+ The options for a voxels collider.
1320
+
1321
+
1311
1322
  </td></tr>
1312
1323
  <tr><td>
1313
1324
 
@@ -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; [VoxelsColliderOptions](./server.voxelscollideroptions.md) &gt; [coordinates](./server.voxelscollideroptions.coordinates.md)
4
+
5
+ ## VoxelsColliderOptions.coordinates property
6
+
7
+ The coordinate of each voxel in the collider.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ coordinates?: Vector3Like[];
13
+ ```
@@ -0,0 +1,94 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [VoxelsColliderOptions](./server.voxelscollideroptions.md)
4
+
5
+ ## VoxelsColliderOptions interface
6
+
7
+ The options for a voxels collider.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export interface VoxelsColliderOptions extends BaseColliderOptions
13
+ ```
14
+ **Extends:** [BaseColliderOptions](./server.basecollideroptions.md)
15
+
16
+ ## Properties
17
+
18
+ <table><thead><tr><th>
19
+
20
+ Property
21
+
22
+
23
+ </th><th>
24
+
25
+ Modifiers
26
+
27
+
28
+ </th><th>
29
+
30
+ Type
31
+
32
+
33
+ </th><th>
34
+
35
+ Description
36
+
37
+
38
+ </th></tr></thead>
39
+ <tbody><tr><td>
40
+
41
+ [coordinates?](./server.voxelscollideroptions.coordinates.md)
42
+
43
+
44
+ </td><td>
45
+
46
+
47
+ </td><td>
48
+
49
+ [Vector3Like](./server.vector3like.md)<!-- -->\[\]
50
+
51
+
52
+ </td><td>
53
+
54
+ _(Optional)_ The coordinate of each voxel in the collider.
55
+
56
+
57
+ </td></tr>
58
+ <tr><td>
59
+
60
+ [shape](./server.voxelscollideroptions.shape.md)
61
+
62
+
63
+ </td><td>
64
+
65
+
66
+ </td><td>
67
+
68
+ [ColliderShape.VOXELS](./server.collidershape.md)
69
+
70
+
71
+ </td><td>
72
+
73
+
74
+ </td></tr>
75
+ <tr><td>
76
+
77
+ [size?](./server.voxelscollideroptions.size.md)
78
+
79
+
80
+ </td><td>
81
+
82
+
83
+ </td><td>
84
+
85
+ [Vector3Like](./server.vector3like.md)
86
+
87
+
88
+ </td><td>
89
+
90
+ _(Optional)_ The size of each voxel in the collider.
91
+
92
+
93
+ </td></tr>
94
+ </tbody></table>
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [VoxelsColliderOptions](./server.voxelscollideroptions.md) &gt; [shape](./server.voxelscollideroptions.shape.md)
4
+
5
+ ## VoxelsColliderOptions.shape property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ shape: ColliderShape.VOXELS;
11
+ ```
@@ -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; [VoxelsColliderOptions](./server.voxelscollideroptions.md) &gt; [size](./server.voxelscollideroptions.size.md)
4
+
5
+ ## VoxelsColliderOptions.size property
6
+
7
+ The size of each voxel in the collider.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ size?: Vector3Like;
13
+ ```
@@ -0,0 +1,30 @@
1
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2
+ 🚨 HYTOPIA PLATFORM GATEWAY IS NOT INITIALIZED 🚨
3
+
4
+ 🔧 Local development is still possible, but these features will be disabled:
5
+ • 👤 Player Accounts
6
+ • 🎭 Player Cosmetics
7
+ • 🐛 Crash Analytics & Debug Logs
8
+
9
+ 💡 These features will be enabled but modified:
10
+ • 💾 Player & Global Persisted Data - Data will be persisted
11
+ locally in the ./dev/persistence directory of your project.
12
+ Player ids for data persistence will begin at 1 for the first
13
+ player to join your local server, and increments for each
14
+ additional player. This means that if you restart your
15
+ server, the first player id will be 1 again. This is to ensure
16
+ that data persistence across server restarts can be easily
17
+ tested and debugged in local development.
18
+
19
+ To enable the HYTOPIA Platform Gateway locally:
20
+ 1. Set these environment variables:
21
+ HYTOPIA_API_KEY, HYTOPIA_GAME_ID, HYTOPIA_LOBBY_ID
22
+ 2. You can find these values at: https://create.hytopia.com
23
+
24
+ Note: In production, these environment variables will be auto-populated
25
+ & the HYTOPIA Platform Gateway will automatically be initialized 🚀
26
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
27
+
28
+ using deprecated parameters for the initialization function; pass a single object instead
29
+ Missing optional extension, "KHR_materials_clearcoat".
30
+ Missing optional extension, "KHR_materials_clearcoat".