hytopia 0.6.34 → 0.7.1

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 (52) hide show
  1. package/bun-server.mjs +167 -167
  2. package/docs/server.blocktype.collideroptions.md +1 -1
  3. package/docs/server.blocktype.halfextents.md +13 -0
  4. package/docs/server.blocktype.md +43 -1
  5. package/docs/server.blocktype.size.md +13 -0
  6. package/docs/server.blocktypeoptions.customcollideroptions.md +1 -1
  7. package/docs/server.blocktypeoptions.halfextents.md +13 -0
  8. package/docs/server.blocktypeoptions.md +20 -1
  9. package/docs/server.chunk._constructor_.md +35 -1
  10. package/docs/server.chunk.md +4 -147
  11. package/docs/server.chunk.origincoordinate.md +1 -1
  12. package/docs/server.chunklattice.clear.md +1 -1
  13. package/docs/server.chunklattice.getblocktypecount.md +55 -0
  14. package/docs/server.chunklattice.getchunk.md +5 -5
  15. package/docs/server.chunklattice.getorcreatechunk.md +55 -0
  16. package/docs/server.chunklattice.haschunk.md +4 -4
  17. package/docs/server.chunklattice.md +36 -7
  18. package/docs/server.chunklattice.setblock.md +1 -1
  19. package/docs/server.chunklatticeevent.md +61 -0
  20. package/docs/server.chunklatticeeventpayloads._chunk_lattice.remove_chunk_.md +16 -0
  21. package/docs/server.chunklatticeeventpayloads._chunk_lattice.set_block_.md +19 -0
  22. package/docs/server.chunklatticeeventpayloads.md +76 -0
  23. package/docs/server.collider.md +16 -0
  24. package/docs/server.collider.scale.md +4 -0
  25. package/docs/server.collider.setvoxel.md +69 -0
  26. package/docs/server.collideroptions.md +2 -2
  27. package/docs/server.collidershape.md +14 -0
  28. package/docs/server.eventpayloads.md +2 -2
  29. package/docs/server.md +17 -4
  30. package/docs/server.particleemitteroptions.md +2 -0
  31. package/docs/server.voxelscollideroptions.coordinates.md +13 -0
  32. package/docs/server.voxelscollideroptions.md +94 -0
  33. package/docs/server.voxelscollideroptions.shape.md +11 -0
  34. package/docs/server.voxelscollideroptions.size.md +13 -0
  35. package/docs/server.world.md +1 -1
  36. package/docs/server.world.setdirectionallightposition.md +2 -2
  37. package/node-server.mjs +167 -167
  38. package/package.json +1 -1
  39. package/server.api.json +827 -764
  40. package/server.d.ts +100 -113
  41. package/docs/server.chunk.despawn.md +0 -17
  42. package/docs/server.chunk.issimulated.md +0 -13
  43. package/docs/server.chunk.isspawned.md +0 -13
  44. package/docs/server.chunk.isvalidorigincoordinate.md +0 -55
  45. package/docs/server.chunk.setblock.md +0 -69
  46. package/docs/server.chunk.spawn.md +0 -69
  47. package/docs/server.chunk.world.md +0 -13
  48. package/docs/server.chunkevent.md +0 -75
  49. package/docs/server.chunkeventpayloads._chunk.despawn_.md +0 -15
  50. package/docs/server.chunkeventpayloads._chunk.set_block_.md +0 -18
  51. package/docs/server.chunkeventpayloads._chunk.spawn_.md +0 -15
  52. package/docs/server.chunkeventpayloads.md +0 -95
@@ -0,0 +1,61 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [ChunkLatticeEvent](./server.chunklatticeevent.md)
4
+
5
+ ## ChunkLatticeEvent enum
6
+
7
+ Event types a ChunkLattice instance can emit. See [ChunkLatticeEventPayloads](./server.chunklatticeeventpayloads.md) for the payloads.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export declare enum ChunkLatticeEvent
13
+ ```
14
+
15
+ ## Enumeration Members
16
+
17
+ <table><thead><tr><th>
18
+
19
+ Member
20
+
21
+
22
+ </th><th>
23
+
24
+ Value
25
+
26
+
27
+ </th><th>
28
+
29
+ Description
30
+
31
+
32
+ </th></tr></thead>
33
+ <tbody><tr><td>
34
+
35
+ REMOVE\_CHUNK
36
+
37
+
38
+ </td><td>
39
+
40
+ `"CHUNK_LATTICE.REMOVE_CHUNK"`
41
+
42
+
43
+ </td><td>
44
+
45
+
46
+ </td></tr>
47
+ <tr><td>
48
+
49
+ SET\_BLOCK
50
+
51
+
52
+ </td><td>
53
+
54
+ `"CHUNK_LATTICE.SET_BLOCK"`
55
+
56
+
57
+ </td><td>
58
+
59
+
60
+ </td></tr>
61
+ </tbody></table>
@@ -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; [ChunkLatticeEventPayloads](./server.chunklatticeeventpayloads.md) &gt; ["CHUNK\_LATTICE.REMOVE\_CHUNK"](./server.chunklatticeeventpayloads._chunk_lattice.remove_chunk_.md)
4
+
5
+ ## ChunkLatticeEventPayloads."CHUNK\_LATTICE.REMOVE\_CHUNK" property
6
+
7
+ Emitted when a chunk is removed from the lattice.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ [ChunkLatticeEvent.REMOVE_CHUNK]: {
13
+ chunkLattice: ChunkLattice;
14
+ chunk: Chunk;
15
+ };
16
+ ```
@@ -0,0 +1,19 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [ChunkLatticeEventPayloads](./server.chunklatticeeventpayloads.md) &gt; ["CHUNK\_LATTICE.SET\_BLOCK"](./server.chunklatticeeventpayloads._chunk_lattice.set_block_.md)
4
+
5
+ ## ChunkLatticeEventPayloads."CHUNK\_LATTICE.SET\_BLOCK" property
6
+
7
+ Emitted when a block is set in the lattice.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ [ChunkLatticeEvent.SET_BLOCK]: {
13
+ chunkLattice: ChunkLattice;
14
+ chunk: Chunk;
15
+ globalCoordinate: Vector3Like;
16
+ localCoordinate: Vector3Like;
17
+ blockTypeId: number;
18
+ };
19
+ ```
@@ -0,0 +1,76 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [ChunkLatticeEventPayloads](./server.chunklatticeeventpayloads.md)
4
+
5
+ ## ChunkLatticeEventPayloads interface
6
+
7
+ Event payloads for ChunkLattice emitted events.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export interface ChunkLatticeEventPayloads
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
+ ["CHUNK\_LATTICE.REMOVE\_CHUNK"](./server.chunklatticeeventpayloads._chunk_lattice.remove_chunk_.md)
41
+
42
+
43
+ </td><td>
44
+
45
+
46
+ </td><td>
47
+
48
+ { chunkLattice: [ChunkLattice](./server.chunklattice.md)<!-- -->; chunk: [Chunk](./server.chunk.md)<!-- -->; }
49
+
50
+
51
+ </td><td>
52
+
53
+ Emitted when a chunk is removed from the lattice.
54
+
55
+
56
+ </td></tr>
57
+ <tr><td>
58
+
59
+ ["CHUNK\_LATTICE.SET\_BLOCK"](./server.chunklatticeeventpayloads._chunk_lattice.set_block_.md)
60
+
61
+
62
+ </td><td>
63
+
64
+
65
+ </td><td>
66
+
67
+ { chunkLattice: [ChunkLattice](./server.chunklattice.md)<!-- -->; chunk: [Chunk](./server.chunk.md)<!-- -->; globalCoordinate: [Vector3Like](./server.vector3like.md)<!-- -->; localCoordinate: [Vector3Like](./server.vector3like.md)<!-- -->; blockTypeId: number; }
68
+
69
+
70
+ </td><td>
71
+
72
+ Emitted when a block is set in the lattice.
73
+
74
+
75
+ </td></tr>
76
+ </tbody></table>
@@ -528,6 +528,8 @@ Removes the collider from the simulation.
528
528
 
529
529
  </td><td>
530
530
 
531
+ Scales the collider by the given scalar. Only ball, block, capsule, cone, cylinder, round cylinder are supported.
532
+
531
533
 
532
534
  </td></tr>
533
535
  <tr><td>
@@ -697,5 +699,19 @@ Sets whether the collider is a sensor.
697
699
  Sets the tag of the collider.
698
700
 
699
701
 
702
+ </td></tr>
703
+ <tr><td>
704
+
705
+ [setVoxel(coordinate, filled)](./server.collider.setvoxel.md)
706
+
707
+
708
+ </td><td>
709
+
710
+
711
+ </td><td>
712
+
713
+ Sets the voxel at the given coordinate as filled or not filled.
714
+
715
+
700
716
  </td></tr>
701
717
  </tbody></table>
@@ -4,6 +4,8 @@
4
4
 
5
5
  ## Collider.scale() method
6
6
 
7
+ Scales the collider by the given scalar. Only ball, block, capsule, cone, cylinder, round cylinder are supported.
8
+
7
9
  **Signature:**
8
10
 
9
11
  ```typescript
@@ -40,6 +42,8 @@ number
40
42
 
41
43
  </td><td>
42
44
 
45
+ The scalar to scale the collider by.
46
+
43
47
 
44
48
  </td></tr>
45
49
  </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
 
@@ -9,7 +9,7 @@ The payloads for all events in the game server.
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- export interface EventPayloads extends AudioEventPayloads, BaseEntityControllerEventPayloads, BlockTypeEventPayloads, BlockTypeRegistryEventPayloads, ChatEventPayloads, ChunkEventPayloads, ConnectionEventPayloads, EntityEventPayloads, GameServerEventPayloads, ParticleEmitterEventPayloads, PlayerCameraEventPayloads, PlayerEventPayloads, PlayerManagerEventPayloads, PlayerUIEventPayloads, SceneUIEventPayloads, SimulationEventPayloads, SocketEventPayloads, LightEventPayloads, WebServerEventPayloads, WorldEventPayloads, WorldLoopEventPayloads, WorldManagerEventPayloads
12
+ export interface EventPayloads extends AudioEventPayloads, BaseEntityControllerEventPayloads, BlockTypeEventPayloads, BlockTypeRegistryEventPayloads, ChatEventPayloads, ChunkLatticeEventPayloads, ConnectionEventPayloads, EntityEventPayloads, GameServerEventPayloads, ParticleEmitterEventPayloads, PlayerCameraEventPayloads, PlayerEventPayloads, PlayerManagerEventPayloads, PlayerUIEventPayloads, SceneUIEventPayloads, SimulationEventPayloads, SocketEventPayloads, LightEventPayloads, WebServerEventPayloads, WorldEventPayloads, WorldLoopEventPayloads, WorldManagerEventPayloads
13
13
  ```
14
- **Extends:** [AudioEventPayloads](./server.audioeventpayloads.md)<!-- -->, [BaseEntityControllerEventPayloads](./server.baseentitycontrollereventpayloads.md)<!-- -->, [BlockTypeEventPayloads](./server.blocktypeeventpayloads.md)<!-- -->, [BlockTypeRegistryEventPayloads](./server.blocktyperegistryeventpayloads.md)<!-- -->, [ChatEventPayloads](./server.chateventpayloads.md)<!-- -->, [ChunkEventPayloads](./server.chunkeventpayloads.md)<!-- -->, ConnectionEventPayloads, [EntityEventPayloads](./server.entityeventpayloads.md)<!-- -->, [GameServerEventPayloads](./server.gameservereventpayloads.md)<!-- -->, [ParticleEmitterEventPayloads](./server.particleemittereventpayloads.md)<!-- -->, [PlayerCameraEventPayloads](./server.playercameraeventpayloads.md)<!-- -->, [PlayerEventPayloads](./server.playereventpayloads.md)<!-- -->, [PlayerManagerEventPayloads](./server.playermanagereventpayloads.md)<!-- -->, [PlayerUIEventPayloads](./server.playeruieventpayloads.md)<!-- -->, [SceneUIEventPayloads](./server.sceneuieventpayloads.md)<!-- -->, [SimulationEventPayloads](./server.simulationeventpayloads.md)<!-- -->, SocketEventPayloads, [LightEventPayloads](./server.lighteventpayloads.md)<!-- -->, WebServerEventPayloads, [WorldEventPayloads](./server.worldeventpayloads.md)<!-- -->, [WorldLoopEventPayloads](./server.worldloopeventpayloads.md)<!-- -->, [WorldManagerEventPayloads](./server.worldmanagereventpayloads.md)
14
+ **Extends:** [AudioEventPayloads](./server.audioeventpayloads.md)<!-- -->, [BaseEntityControllerEventPayloads](./server.baseentitycontrollereventpayloads.md)<!-- -->, [BlockTypeEventPayloads](./server.blocktypeeventpayloads.md)<!-- -->, [BlockTypeRegistryEventPayloads](./server.blocktyperegistryeventpayloads.md)<!-- -->, [ChatEventPayloads](./server.chateventpayloads.md)<!-- -->, [ChunkLatticeEventPayloads](./server.chunklatticeeventpayloads.md)<!-- -->, ConnectionEventPayloads, [EntityEventPayloads](./server.entityeventpayloads.md)<!-- -->, [GameServerEventPayloads](./server.gameservereventpayloads.md)<!-- -->, [ParticleEmitterEventPayloads](./server.particleemittereventpayloads.md)<!-- -->, [PlayerCameraEventPayloads](./server.playercameraeventpayloads.md)<!-- -->, [PlayerEventPayloads](./server.playereventpayloads.md)<!-- -->, [PlayerManagerEventPayloads](./server.playermanagereventpayloads.md)<!-- -->, [PlayerUIEventPayloads](./server.playeruieventpayloads.md)<!-- -->, [SceneUIEventPayloads](./server.sceneuieventpayloads.md)<!-- -->, [SimulationEventPayloads](./server.simulationeventpayloads.md)<!-- -->, SocketEventPayloads, [LightEventPayloads](./server.lighteventpayloads.md)<!-- -->, WebServerEventPayloads, [WorldEventPayloads](./server.worldeventpayloads.md)<!-- -->, [WorldLoopEventPayloads](./server.worldloopeventpayloads.md)<!-- -->, [WorldManagerEventPayloads](./server.worldmanagereventpayloads.md)
15
15
 
package/docs/server.md CHANGED
@@ -599,12 +599,12 @@ Event types a ChatManager instance can emit. See [ChatEventPayloads](./server.ch
599
599
  </td></tr>
600
600
  <tr><td>
601
601
 
602
- [ChunkEvent](./server.chunkevent.md)
602
+ [ChunkLatticeEvent](./server.chunklatticeevent.md)
603
603
 
604
604
 
605
605
  </td><td>
606
606
 
607
- Event types a Chunk instance can emit. See [ChunkEventPayloads](./server.chunkeventpayloads.md) for the payloads.
607
+ Event types a ChunkLattice instance can emit. See [ChunkLatticeEventPayloads](./server.chunklatticeeventpayloads.md) for the payloads.
608
608
 
609
609
 
610
610
  </td></tr>
@@ -1014,12 +1014,12 @@ Event payloads for ChatManager emitted events.
1014
1014
  </td></tr>
1015
1015
  <tr><td>
1016
1016
 
1017
- [ChunkEventPayloads](./server.chunkeventpayloads.md)
1017
+ [ChunkLatticeEventPayloads](./server.chunklatticeeventpayloads.md)
1018
1018
 
1019
1019
 
1020
1020
  </td><td>
1021
1021
 
1022
- Event payloads for Chunk emitted events.
1022
+ Event payloads for ChunkLattice emitted events.
1023
1023
 
1024
1024
 
1025
1025
  </td></tr>
@@ -1195,6 +1195,8 @@ Event payloads for ParticleEmitter emitted events.
1195
1195
 
1196
1196
  </td><td>
1197
1197
 
1198
+ Options for creating a ParticleEmitter instance.
1199
+
1198
1200
 
1199
1201
  </td></tr>
1200
1202
  <tr><td>
@@ -1372,6 +1374,17 @@ A 3-dimensional vector of boolean values.
1372
1374
  A 3-dimensional vector.
1373
1375
 
1374
1376
 
1377
+ </td></tr>
1378
+ <tr><td>
1379
+
1380
+ [VoxelsColliderOptions](./server.voxelscollideroptions.md)
1381
+
1382
+
1383
+ </td><td>
1384
+
1385
+ The options for a voxels collider.
1386
+
1387
+
1375
1388
  </td></tr>
1376
1389
  <tr><td>
1377
1390
 
@@ -4,6 +4,8 @@
4
4
 
5
5
  ## ParticleEmitterOptions interface
6
6
 
7
+ Options for creating a ParticleEmitter instance.
8
+
7
9
  **Signature:**
8
10
 
9
11
  ```typescript
@@ -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
+ ```
@@ -674,7 +674,7 @@ Sets the intensity of the world's directional light.
674
674
 
675
675
  </td><td>
676
676
 
677
- Sets the position the world's directional light originates from.
677
+ Sets the position the world's directional light originates from relative to a player's camera position.
678
678
 
679
679
 
680
680
  </td></tr>
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## World.setDirectionalLightPosition() method
6
6
 
7
- Sets the position the world's directional light originates from.
7
+ Sets the position the world's directional light originates from relative to a player's camera position.
8
8
 
9
9
  **Signature:**
10
10
 
@@ -42,7 +42,7 @@ position
42
42
 
43
43
  </td><td>
44
44
 
45
- The position in the world.
45
+ The position the directional light originates from relative to the player's camera position.
46
46
 
47
47
 
48
48
  </td></tr>