hytopia 0.1.33 → 0.1.36

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.
Files changed (186) hide show
  1. package/README.md +3 -1
  2. package/docs/server.audio.md +1 -1
  3. package/docs/server.blocktype.md +1 -1
  4. package/docs/server.blocktyperegistry.md +2 -2
  5. package/docs/server.blocktyperegistry.registerblocktype.md +2 -18
  6. package/docs/server.chunk.getblock.md +55 -0
  7. package/docs/server.chunk.hasblock.md +55 -0
  8. package/docs/server.chunk.md +28 -0
  9. package/docs/server.chunklattice.getblock.md +55 -0
  10. package/docs/server.chunklattice.hasblock.md +55 -0
  11. package/docs/server.chunklattice.md +29 -1
  12. package/docs/server.chunklattice.setblock.md +2 -2
  13. package/docs/server.collider.md +21 -0
  14. package/docs/server.collider.shape.md +13 -0
  15. package/docs/server.default_block_entity_rigid_body_options.md +13 -0
  16. package/docs/server.default_entity_rigid_body_options.md +1 -1
  17. package/docs/server.entity.blockhalfextents.md +13 -0
  18. package/docs/server.entity.blocktextureuri.md +13 -0
  19. package/docs/server.entity.md +98 -0
  20. package/docs/server.entity.settintcolor.md +53 -0
  21. package/docs/server.entity.tag.md +13 -0
  22. package/docs/server.entity.tintcolor.md +13 -0
  23. package/docs/server.entityeventpayload.md +9 -0
  24. package/docs/server.entityeventpayload.settintcolor.entity.md +11 -0
  25. package/docs/server.entityeventpayload.settintcolor.md +70 -0
  26. package/docs/server.entityeventpayload.settintcolor.tintcolor.md +11 -0
  27. package/docs/server.entityeventtype.md +15 -1
  28. package/docs/server.entitymanager.getentitiesbytag.md +55 -0
  29. package/docs/server.entitymanager.getentitiesbytagsubstring.md +55 -0
  30. package/docs/server.entitymanager.md +28 -0
  31. package/docs/server.entityoptions.blockhalfextents.md +13 -0
  32. package/docs/server.entityoptions.blocktextureuri.md +13 -0
  33. package/docs/server.entityoptions.md +76 -0
  34. package/docs/server.entityoptions.tag.md +13 -0
  35. package/docs/server.entityoptions.tintcolor.md +13 -0
  36. package/docs/server.gameserver.md +1 -1
  37. package/docs/server.hytopia.audio.md +1 -1
  38. package/docs/server.hytopia.blocktype.md +1 -1
  39. package/docs/server.hytopia.blocktyperegistry.md +2 -2
  40. package/docs/server.hytopia.blocktyperegistry.registerblocktype.md +2 -18
  41. package/docs/server.hytopia.chunk.getblock.md +55 -0
  42. package/docs/server.hytopia.chunk.hasblock.md +55 -0
  43. package/docs/server.hytopia.chunk.md +28 -0
  44. package/docs/server.hytopia.chunklattice.getblock.md +55 -0
  45. package/docs/server.hytopia.chunklattice.hasblock.md +55 -0
  46. package/docs/server.hytopia.chunklattice.md +29 -1
  47. package/docs/server.hytopia.chunklattice.setblock.md +2 -2
  48. package/docs/server.hytopia.collider.md +21 -0
  49. package/docs/server.hytopia.collider.shape.md +13 -0
  50. package/docs/server.hytopia.default_block_entity_rigid_body_options.md +13 -0
  51. package/docs/server.hytopia.default_entity_rigid_body_options.md +1 -1
  52. package/docs/server.hytopia.entity.blockhalfextents.md +13 -0
  53. package/docs/server.hytopia.entity.blocktextureuri.md +13 -0
  54. package/docs/server.hytopia.entity.md +98 -0
  55. package/docs/server.hytopia.entity.settintcolor.md +53 -0
  56. package/docs/server.hytopia.entity.tag.md +13 -0
  57. package/docs/server.hytopia.entity.tintcolor.md +13 -0
  58. package/docs/server.hytopia.entityeventpayload.md +9 -0
  59. package/docs/server.hytopia.entityeventpayload.settintcolor.entity.md +11 -0
  60. package/docs/server.hytopia.entityeventpayload.settintcolor.md +70 -0
  61. package/docs/server.hytopia.entityeventpayload.settintcolor.tintcolor.md +11 -0
  62. package/docs/server.hytopia.entityeventtype.md +15 -1
  63. package/docs/server.hytopia.entitymanager.getentitiesbytag.md +55 -0
  64. package/docs/server.hytopia.entitymanager.getentitiesbytagsubstring.md +55 -0
  65. package/docs/server.hytopia.entitymanager.md +28 -0
  66. package/docs/server.hytopia.entityoptions.blockhalfextents.md +13 -0
  67. package/docs/server.hytopia.entityoptions.blocktextureuri.md +13 -0
  68. package/docs/server.hytopia.entityoptions.md +76 -0
  69. package/docs/server.hytopia.entityoptions.tag.md +13 -0
  70. package/docs/server.hytopia.entityoptions.tintcolor.md +13 -0
  71. package/docs/server.hytopia.gameserver.md +1 -1
  72. package/docs/server.hytopia.md +23 -12
  73. package/docs/server.hytopia.rgbcolor.b.md +11 -0
  74. package/docs/server.hytopia.rgbcolor.g.md +11 -0
  75. package/docs/server.hytopia.rgbcolor.md +89 -0
  76. package/docs/server.hytopia.rgbcolor.r.md +11 -0
  77. package/docs/server.hytopia.rigidbody.md +0 -35
  78. package/docs/server.hytopia.rigidbodyoptions.md +0 -19
  79. package/docs/server.hytopia.simulation.md +14 -0
  80. package/docs/{server.hytopia.rigidbody.settag.md → server.hytopia.simulation.setgravity.md} +7 -7
  81. package/docs/server.hytopia.worldmap.blocktypes.md +1 -5
  82. package/docs/server.hytopia.worldmap.md +1 -1
  83. package/docs/server.md +23 -12
  84. package/docs/server.rgbcolor.b.md +11 -0
  85. package/docs/server.rgbcolor.g.md +11 -0
  86. package/docs/server.rgbcolor.md +89 -0
  87. package/docs/server.rgbcolor.r.md +11 -0
  88. package/docs/server.rigidbody.md +0 -35
  89. package/docs/server.rigidbodyoptions.md +0 -19
  90. package/docs/server.simulation.md +14 -0
  91. package/docs/server.simulation.setgravity.md +53 -0
  92. package/docs/server.worldmap.blocktypes.md +1 -5
  93. package/docs/server.worldmap.md +1 -1
  94. package/examples/block-entity/README.md +15 -0
  95. package/examples/block-entity/assets/audio/music/cave.mp3 +0 -0
  96. package/examples/block-entity/assets/audio/music/desert.mp3 +0 -0
  97. package/examples/block-entity/assets/audio/music/end.mp3 +0 -0
  98. package/examples/block-entity/assets/audio/music/jungle.mp3 +0 -0
  99. package/examples/block-entity/assets/audio/music/nether.mp3 +0 -0
  100. package/examples/block-entity/assets/audio/music/night.mp3 +0 -0
  101. package/examples/block-entity/assets/audio/music/night2.mp3 +0 -0
  102. package/examples/block-entity/assets/audio/music/overworld.mp3 +0 -0
  103. package/examples/block-entity/assets/audio/music/snow.mp3 +0 -0
  104. package/examples/block-entity/assets/audio/sfx/damage.wav +0 -0
  105. package/examples/block-entity/assets/audio/sfx/step.wav +0 -0
  106. package/examples/block-entity/assets/certs/README.md +10 -0
  107. package/examples/block-entity/assets/certs/localhost.crt +20 -0
  108. package/examples/block-entity/assets/certs/localhost.key +27 -0
  109. package/examples/block-entity/assets/cubemaps/skybox/+x.png +0 -0
  110. package/examples/block-entity/assets/cubemaps/skybox/+y.png +0 -0
  111. package/examples/block-entity/assets/cubemaps/skybox/+z.png +0 -0
  112. package/examples/block-entity/assets/cubemaps/skybox/-x.png +0 -0
  113. package/examples/block-entity/assets/cubemaps/skybox/-y.png +0 -0
  114. package/examples/block-entity/assets/cubemaps/skybox/-z.png +0 -0
  115. package/examples/block-entity/assets/map.json +2623 -0
  116. package/examples/block-entity/assets/models/bat.gltf +1 -0
  117. package/examples/block-entity/assets/models/chicken.gltf +1 -0
  118. package/examples/block-entity/assets/models/cow.gltf +1 -0
  119. package/examples/block-entity/assets/models/donkey.gltf +1 -0
  120. package/examples/block-entity/assets/models/horse.gltf +1 -0
  121. package/examples/block-entity/assets/models/mindflayer.gltf +1 -0
  122. package/examples/block-entity/assets/models/pig.gltf +1 -0
  123. package/examples/block-entity/assets/models/player.gltf +1 -0
  124. package/examples/block-entity/assets/models/rabbit.gltf +1 -0
  125. package/examples/block-entity/assets/models/sheep.gltf +1 -0
  126. package/examples/block-entity/assets/models/skeleton.gltf +1 -0
  127. package/examples/block-entity/assets/models/spider.gltf +1 -0
  128. package/examples/block-entity/assets/models/squid.gltf +1 -0
  129. package/examples/block-entity/assets/models/stalker.gltf +1 -0
  130. package/examples/block-entity/assets/models/zombie.gltf +1 -0
  131. package/examples/block-entity/assets/textures/bricks.png +0 -0
  132. package/examples/block-entity/assets/textures/clay.png +0 -0
  133. package/examples/block-entity/assets/textures/cobblestone.png +0 -0
  134. package/examples/block-entity/assets/textures/diamond_ore.png +0 -0
  135. package/examples/block-entity/assets/textures/dirt.png +0 -0
  136. package/examples/block-entity/assets/textures/dragons_stone.png +0 -0
  137. package/examples/block-entity/assets/textures/emerald_ore.png +0 -0
  138. package/examples/block-entity/assets/textures/glass.png +0 -0
  139. package/examples/block-entity/assets/textures/gold_ore.png +0 -0
  140. package/examples/block-entity/assets/textures/grass/+x.png +0 -0
  141. package/examples/block-entity/assets/textures/grass/+y.png +0 -0
  142. package/examples/block-entity/assets/textures/grass/+z.png +0 -0
  143. package/examples/block-entity/assets/textures/grass/-x.png +0 -0
  144. package/examples/block-entity/assets/textures/grass/-y.png +0 -0
  145. package/examples/block-entity/assets/textures/grass/-z.png +0 -0
  146. package/examples/block-entity/assets/textures/gravel.png +0 -0
  147. package/examples/block-entity/assets/textures/ice.png +0 -0
  148. package/examples/block-entity/assets/textures/infected_shadowrock.png +0 -0
  149. package/examples/block-entity/assets/textures/iron_ore.png +0 -0
  150. package/examples/block-entity/assets/textures/lava.png +0 -0
  151. package/examples/block-entity/assets/textures/log_side.png +0 -0
  152. package/examples/block-entity/assets/textures/log_top.png +0 -0
  153. package/examples/block-entity/assets/textures/mossy_coblestone.png +0 -0
  154. package/examples/block-entity/assets/textures/nuit.png +0 -0
  155. package/examples/block-entity/assets/textures/oak_leaves.png +0 -0
  156. package/examples/block-entity/assets/textures/oak_planks.png +0 -0
  157. package/examples/block-entity/assets/textures/sand.png +0 -0
  158. package/examples/block-entity/assets/textures/sandstone.png +0 -0
  159. package/examples/block-entity/assets/textures/shadowrock.png +0 -0
  160. package/examples/block-entity/assets/textures/snow.png +0 -0
  161. package/examples/block-entity/assets/textures/stone.png +0 -0
  162. package/examples/block-entity/assets/textures/stone_bricks.png +0 -0
  163. package/examples/block-entity/assets/textures/void_grass/+x.png +0 -0
  164. package/examples/block-entity/assets/textures/void_grass/+y.png +0 -0
  165. package/examples/block-entity/assets/textures/void_grass/+z.png +0 -0
  166. package/examples/block-entity/assets/textures/void_grass/-x.png +0 -0
  167. package/examples/block-entity/assets/textures/void_grass/-y.png +0 -0
  168. package/examples/block-entity/assets/textures/void_grass/-z.png +0 -0
  169. package/examples/block-entity/assets/textures/void_sand.png +0 -0
  170. package/examples/block-entity/assets/textures/water.png +0 -0
  171. package/examples/block-entity/index.ts +173 -0
  172. package/examples/block-entity/package.json +14 -0
  173. package/examples/payload-game/index.ts +7 -0
  174. package/package.json +1 -1
  175. package/readme/assets/banner-2.jpeg +0 -0
  176. package/server.api.json +1910 -414
  177. package/server.d.ts +98 -58
  178. package/server.js +80 -80
  179. package/docs/server.hytopia.rigidbody.tag.md +0 -13
  180. package/docs/server.hytopia.rigidbodyoptions.tag.md +0 -13
  181. package/docs/server.hytopia.webserver.md +0 -21
  182. package/docs/server.rigidbody.settag.md +0 -53
  183. package/docs/server.rigidbody.tag.md +0 -13
  184. package/docs/server.rigidbodyoptions.tag.md +0 -13
  185. package/docs/server.webserver.md +0 -21
  186. package/examples/README.md +0 -22
@@ -0,0 +1,55 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [HYTOPIA](./server.hytopia.md) &gt; [EntityManager](./server.hytopia.entitymanager.md) &gt; [getEntitiesByTag](./server.hytopia.entitymanager.getentitiesbytag.md)
4
+
5
+ ## HYTOPIA.EntityManager.getEntitiesByTag() method
6
+
7
+ Gets all spawned entities in the world with a specific tag.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ getEntitiesByTag(tag: string): Entity[];
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
+ tag
36
+
37
+
38
+ </td><td>
39
+
40
+ string
41
+
42
+
43
+ </td><td>
44
+
45
+ The tag to get the entities for.
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
50
+ **Returns:**
51
+
52
+ [Entity](./server.entity.md)<!-- -->\[\]
53
+
54
+ All spawned entities in the world with the provided tag.
55
+
@@ -0,0 +1,55 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [HYTOPIA](./server.hytopia.md) &gt; [EntityManager](./server.hytopia.entitymanager.md) &gt; [getEntitiesByTagSubstring](./server.hytopia.entitymanager.getentitiesbytagsubstring.md)
4
+
5
+ ## HYTOPIA.EntityManager.getEntitiesByTagSubstring() method
6
+
7
+ Gets all spawned entities in the world with a tag that includes a specific substring.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ getEntitiesByTagSubstring(tagSubstring: string): Entity[];
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
+ tagSubstring
36
+
37
+
38
+ </td><td>
39
+
40
+ string
41
+
42
+
43
+ </td><td>
44
+
45
+ The tag substring to get the entities for.
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
50
+ **Returns:**
51
+
52
+ [Entity](./server.entity.md)<!-- -->\[\]
53
+
54
+ All spawned entities in the world with a tag that includes the provided substring.
55
+
@@ -118,6 +118,34 @@ Gets all spawned entities in the world.
118
118
  Gets all spawned entities in the world assigned to a player.
119
119
 
120
120
 
121
+ </td></tr>
122
+ <tr><td>
123
+
124
+ [getEntitiesByTag(tag)](./server.hytopia.entitymanager.getentitiesbytag.md)
125
+
126
+
127
+ </td><td>
128
+
129
+
130
+ </td><td>
131
+
132
+ Gets all spawned entities in the world with a specific tag.
133
+
134
+
135
+ </td></tr>
136
+ <tr><td>
137
+
138
+ [getEntitiesByTagSubstring(tagSubstring)](./server.hytopia.entitymanager.getentitiesbytagsubstring.md)
139
+
140
+
141
+ </td><td>
142
+
143
+
144
+ </td><td>
145
+
146
+ Gets all spawned entities in the world with a tag that includes a specific substring.
147
+
148
+
121
149
  </td></tr>
122
150
  <tr><td>
123
151
 
@@ -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; [HYTOPIA](./server.hytopia.md) &gt; [EntityOptions](./server.hytopia.entityoptions.md) &gt; [blockHalfExtents](./server.hytopia.entityoptions.blockhalfextents.md)
4
+
5
+ ## HYTOPIA.EntityOptions.blockHalfExtents property
6
+
7
+ The half extents of the visual size of the block entity when blockTextureUri is set. If no rigidBodyOptions.colliders are provided, a block collider with the size of the half extents will be created.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ blockHalfExtents?: Vector3;
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; [HYTOPIA](./server.hytopia.md) &gt; [EntityOptions](./server.hytopia.entityoptions.md) &gt; [blockTextureUri](./server.hytopia.entityoptions.blocktextureuri.md)
4
+
5
+ ## HYTOPIA.EntityOptions.blockTextureUri property
6
+
7
+ The texture uri of a entity if the entity is a block entity, if set rigidBodyOptions collider shape \[0\] must be a block
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ blockTextureUri?: string;
13
+ ```
@@ -37,6 +37,44 @@ Description
37
37
  </th></tr></thead>
38
38
  <tbody><tr><td>
39
39
 
40
+ [blockHalfExtents?](./server.hytopia.entityoptions.blockhalfextents.md)
41
+
42
+
43
+ </td><td>
44
+
45
+
46
+ </td><td>
47
+
48
+ [Vector3](./server.vector3.md)
49
+
50
+
51
+ </td><td>
52
+
53
+ _(Optional)_ The half extents of the visual size of the block entity when blockTextureUri is set. If no rigidBodyOptions.colliders are provided, a block collider with the size of the half extents will be created.
54
+
55
+
56
+ </td></tr>
57
+ <tr><td>
58
+
59
+ [blockTextureUri?](./server.hytopia.entityoptions.blocktextureuri.md)
60
+
61
+
62
+ </td><td>
63
+
64
+
65
+ </td><td>
66
+
67
+ string
68
+
69
+
70
+ </td><td>
71
+
72
+ _(Optional)_ The texture uri of a entity if the entity is a block entity, if set rigidBodyOptions collider shape \[0\] must be a block
73
+
74
+
75
+ </td></tr>
76
+ <tr><td>
77
+
40
78
  [createCustomCharacterController?](./server.hytopia.entityoptions.createcustomcharactercontroller.md)
41
79
 
42
80
 
@@ -148,5 +186,43 @@ _(Optional)_ The name of the entity.
148
186
  _(Optional)_ The rigid body options for the entity.
149
187
 
150
188
 
189
+ </td></tr>
190
+ <tr><td>
191
+
192
+ [tag?](./server.hytopia.entityoptions.tag.md)
193
+
194
+
195
+ </td><td>
196
+
197
+
198
+ </td><td>
199
+
200
+ string
201
+
202
+
203
+ </td><td>
204
+
205
+ _(Optional)_ An arbitrary identifier tag of the entity. Useful for your own logic.
206
+
207
+
208
+ </td></tr>
209
+ <tr><td>
210
+
211
+ [tintColor?](./server.hytopia.entityoptions.tintcolor.md)
212
+
213
+
214
+ </td><td>
215
+
216
+
217
+ </td><td>
218
+
219
+ [RgbColor](./server.rgbcolor.md)
220
+
221
+
222
+ </td><td>
223
+
224
+ _(Optional)_ The tint color of the entity as a hex code.
225
+
226
+
151
227
  </td></tr>
152
228
  </tbody></table>
@@ -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; [HYTOPIA](./server.hytopia.md) &gt; [EntityOptions](./server.hytopia.entityoptions.md) &gt; [tag](./server.hytopia.entityoptions.tag.md)
4
+
5
+ ## HYTOPIA.EntityOptions.tag property
6
+
7
+ An arbitrary identifier tag of the entity. Useful for your own logic.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ tag?: string;
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; [HYTOPIA](./server.hytopia.md) &gt; [EntityOptions](./server.hytopia.entityoptions.md) &gt; [tintColor](./server.hytopia.entityoptions.tintcolor.md)
4
+
5
+ ## HYTOPIA.EntityOptions.tintColor property
6
+
7
+ The tint color of the entity as a hex code.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ tintColor?: RgbColor;
13
+ ```
@@ -97,7 +97,7 @@ The player manager for the game server.
97
97
 
98
98
  </td><td>
99
99
 
100
- [WebServer](./server.webserver.md)
100
+ WebServer
101
101
 
102
102
 
103
103
  </td><td>
@@ -258,17 +258,6 @@ A simple character controller with basic movement functions.
258
258
  Represents the physics simulation for a world.
259
259
 
260
260
 
261
- </td></tr>
262
- <tr><td>
263
-
264
- [WebServer](./server.hytopia.webserver.md)
265
-
266
-
267
- </td><td>
268
-
269
- Manages the internal HTTP server for the game server.
270
-
271
-
272
261
  </td></tr>
273
262
  <tr><td>
274
263
 
@@ -591,6 +580,17 @@ An EventRouter event.
591
580
  Options for creating a PlayerEntity instance.
592
581
 
593
582
 
583
+ </td></tr>
584
+ <tr><td>
585
+
586
+ [RgbColor](./server.hytopia.rgbcolor.md)
587
+
588
+
589
+ </td><td>
590
+
591
+ A RGB color.
592
+
593
+
594
594
  </td></tr>
595
595
  <tr><td>
596
596
 
@@ -800,12 +800,23 @@ Description
800
800
  </th></tr></thead>
801
801
  <tbody><tr><td>
802
802
 
803
+ [DEFAULT\_BLOCK\_ENTITY\_RIGID\_BODY\_OPTIONS](./server.hytopia.default_block_entity_rigid_body_options.md)
804
+
805
+
806
+ </td><td>
807
+
808
+ The default rigid body options for a block entity when EntityOptions.rigidBodyOptions is not provided.
809
+
810
+
811
+ </td></tr>
812
+ <tr><td>
813
+
803
814
  [DEFAULT\_ENTITY\_RIGID\_BODY\_OPTIONS](./server.hytopia.default_entity_rigid_body_options.md)
804
815
 
805
816
 
806
817
  </td><td>
807
818
 
808
- The default rigid body options when EntityOptions.rigidBodyOptions is not provided.
819
+ The default rigid body options for a model entity when EntityOptions.rigidBodyOptions is not provided.
809
820
 
810
821
 
811
822
  </td></tr>
@@ -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; [HYTOPIA](./server.hytopia.md) &gt; [RgbColor](./server.hytopia.rgbcolor.md) &gt; [b](./server.hytopia.rgbcolor.b.md)
4
+
5
+ ## HYTOPIA.RgbColor.b property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ b: number;
11
+ ```
@@ -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; [HYTOPIA](./server.hytopia.md) &gt; [RgbColor](./server.hytopia.rgbcolor.md) &gt; [g](./server.hytopia.rgbcolor.g.md)
4
+
5
+ ## HYTOPIA.RgbColor.g property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ g: number;
11
+ ```
@@ -0,0 +1,89 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [HYTOPIA](./server.hytopia.md) &gt; [RgbColor](./server.hytopia.rgbcolor.md)
4
+
5
+ ## HYTOPIA.RgbColor interface
6
+
7
+ A RGB color.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ interface RgbColor
13
+ ```
14
+
15
+ ## Properties
16
+
17
+ <table><thead><tr><th>
18
+
19
+ Property
20
+
21
+
22
+ </th><th>
23
+
24
+ Modifiers
25
+
26
+
27
+ </th><th>
28
+
29
+ Type
30
+
31
+
32
+ </th><th>
33
+
34
+ Description
35
+
36
+
37
+ </th></tr></thead>
38
+ <tbody><tr><td>
39
+
40
+ [b](./server.hytopia.rgbcolor.b.md)
41
+
42
+
43
+ </td><td>
44
+
45
+
46
+ </td><td>
47
+
48
+ number
49
+
50
+
51
+ </td><td>
52
+
53
+
54
+ </td></tr>
55
+ <tr><td>
56
+
57
+ [g](./server.hytopia.rgbcolor.g.md)
58
+
59
+
60
+ </td><td>
61
+
62
+
63
+ </td><td>
64
+
65
+ number
66
+
67
+
68
+ </td><td>
69
+
70
+
71
+ </td></tr>
72
+ <tr><td>
73
+
74
+ [r](./server.hytopia.rgbcolor.r.md)
75
+
76
+
77
+ </td><td>
78
+
79
+
80
+ </td><td>
81
+
82
+ number
83
+
84
+
85
+ </td><td>
86
+
87
+
88
+ </td></tr>
89
+ </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; [HYTOPIA](./server.hytopia.md) &gt; [RgbColor](./server.hytopia.rgbcolor.md) &gt; [r](./server.hytopia.rgbcolor.r.md)
4
+
5
+ ## HYTOPIA.RgbColor.r property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ r: number;
11
+ ```
@@ -366,27 +366,6 @@ RAPIER.RigidBody \| undefined
366
366
  The raw RAPIER rigid body instance.
367
367
 
368
368
 
369
- </td></tr>
370
- <tr><td>
371
-
372
- [tag](./server.hytopia.rigidbody.tag.md)
373
-
374
-
375
- </td><td>
376
-
377
- `readonly`
378
-
379
-
380
- </td><td>
381
-
382
- string \| undefined
383
-
384
-
385
- </td><td>
386
-
387
- An arbitrary identifier tag of the rigid body. Useful for your own logic.
388
-
389
-
390
369
  </td></tr>
391
370
  </tbody></table>
392
371
 
@@ -1233,20 +1212,6 @@ Sets whether the rigid body is sleeping.
1233
1212
  Sets the soft ccd prediction of the rigid body.
1234
1213
 
1235
1214
 
1236
- </td></tr>
1237
- <tr><td>
1238
-
1239
- [setTag(tag)](./server.hytopia.rigidbody.settag.md)
1240
-
1241
-
1242
- </td><td>
1243
-
1244
-
1245
- </td><td>
1246
-
1247
- Sets the tag of the rigid body.
1248
-
1249
-
1250
1215
  </td></tr>
1251
1216
  <tr><td>
1252
1217
 
@@ -376,25 +376,6 @@ number
376
376
  _(Optional)_ The soft continuous collision detection prediction of the rigid body.
377
377
 
378
378
 
379
- </td></tr>
380
- <tr><td>
381
-
382
- [tag?](./server.hytopia.rigidbodyoptions.tag.md)
383
-
384
-
385
- </td><td>
386
-
387
-
388
- </td><td>
389
-
390
- string
391
-
392
-
393
- </td><td>
394
-
395
- _(Optional)_ The tag of the rigid body.
396
-
397
-
398
379
  </td></tr>
399
380
  <tr><td>
400
381
 
@@ -172,5 +172,19 @@ Casts a ray through the simulation.
172
172
  Enables or disables debug rendering for the simulation. When enabled, all colliders, rigid body and raycast outlines will be rendered in the world. Do not enable this in production. In large worlds enabling this can cause noticable lag and RTT spikes.
173
173
 
174
174
 
175
+ </td></tr>
176
+ <tr><td>
177
+
178
+ [setGravity(gravity)](./server.hytopia.simulation.setgravity.md)
179
+
180
+
181
+ </td><td>
182
+
183
+
184
+ </td><td>
185
+
186
+ Sets the gravity vector for the simulation.
187
+
188
+
175
189
  </td></tr>
176
190
  </tbody></table>
@@ -1,15 +1,15 @@
1
1
  <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
2
 
3
- [Home](./index.md) &gt; [server](./server.md) &gt; [HYTOPIA](./server.hytopia.md) &gt; [RigidBody](./server.hytopia.rigidbody.md) &gt; [setTag](./server.hytopia.rigidbody.settag.md)
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [HYTOPIA](./server.hytopia.md) &gt; [Simulation](./server.hytopia.simulation.md) &gt; [setGravity](./server.hytopia.simulation.setgravity.md)
4
4
 
5
- ## HYTOPIA.RigidBody.setTag() method
5
+ ## HYTOPIA.Simulation.setGravity() method
6
6
 
7
- Sets the tag of the rigid body.
7
+ Sets the gravity vector for the simulation.
8
8
 
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- setTag(tag: string): void;
12
+ setGravity(gravity: RAPIER.Vector3): void;
13
13
  ```
14
14
 
15
15
  ## Parameters
@@ -32,17 +32,17 @@ Description
32
32
  </th></tr></thead>
33
33
  <tbody><tr><td>
34
34
 
35
- tag
35
+ gravity
36
36
 
37
37
 
38
38
  </td><td>
39
39
 
40
- string
40
+ RAPIER.Vector3
41
41
 
42
42
 
43
43
  </td><td>
44
44
 
45
- The tag of the rigid body.
45
+ The gravity vector.
46
46
 
47
47
 
48
48
  </td></tr>
@@ -9,9 +9,5 @@ The block types in the map.
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- blockTypes: {
13
- id: number;
14
- name: string;
15
- textureUri: string;
16
- }[];
12
+ blockTypes: BlockTypeOptions[];
17
13
  ```
@@ -64,7 +64,7 @@ The blocks in the map
64
64
 
65
65
  </td><td>
66
66
 
67
- { id: number; name: string; textureUri: string; }\[\]
67
+ [BlockTypeOptions](./server.blocktypeoptions.md)<!-- -->\[\]
68
68
 
69
69
 
70
70
  </td><td>