hytopia 0.1.30 → 0.1.32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (159) hide show
  1. package/README.md +3 -26
  2. package/bin/scripts.js +14 -8
  3. package/boilerplate/assets/map.json +2 -2
  4. package/docs/server.entity.md +2 -2
  5. package/docs/server.entity.onblockcollision.md +1 -1
  6. package/docs/server.entity.onblockcontactforce.md +1 -1
  7. package/docs/server.hytopia.entity.md +2 -2
  8. package/docs/server.hytopia.entity.onblockcollision.md +1 -1
  9. package/docs/server.hytopia.entity.onblockcontactforce.md +1 -1
  10. package/docs/server.hytopia.md +42 -0
  11. package/docs/server.hytopia.player.camera.md +13 -0
  12. package/docs/server.hytopia.player.md +21 -0
  13. package/docs/server.hytopia.playercamera.attachedtoentity.md +13 -0
  14. package/docs/server.hytopia.playercamera.attachedtoposition.md +13 -0
  15. package/docs/server.hytopia.playercamera.filmoffset.md +13 -0
  16. package/docs/server.hytopia.playercamera.forwardoffset.md +13 -0
  17. package/docs/server.hytopia.playercamera.fov.md +13 -0
  18. package/docs/server.hytopia.playercamera.hiddenmodelnodes.md +13 -0
  19. package/docs/server.hytopia.playercamera.lookatentity.md +53 -0
  20. package/docs/server.hytopia.playercamera.lookatposition.md +53 -0
  21. package/docs/server.hytopia.playercamera.md +506 -0
  22. package/docs/server.hytopia.playercamera.mode.md +13 -0
  23. package/docs/server.hytopia.playercamera.offset.md +13 -0
  24. package/docs/server.hytopia.playercamera.player.md +13 -0
  25. package/docs/server.hytopia.playercamera.setattachedtoentity.md +53 -0
  26. package/docs/server.hytopia.playercamera.setattachedtoposition.md +53 -0
  27. package/docs/server.hytopia.playercamera.setfilmoffset.md +53 -0
  28. package/docs/server.hytopia.playercamera.setforwardoffset.md +53 -0
  29. package/docs/server.hytopia.playercamera.setfov.md +53 -0
  30. package/docs/server.hytopia.playercamera.sethiddenmodelnodes.md +53 -0
  31. package/docs/server.hytopia.playercamera.setmode.md +53 -0
  32. package/docs/server.hytopia.playercamera.setoffset.md +53 -0
  33. package/docs/server.hytopia.playercamera.settrackedentity.md +53 -0
  34. package/docs/server.hytopia.playercamera.settrackedposition.md +53 -0
  35. package/docs/server.hytopia.playercamera.setzoom.md +53 -0
  36. package/docs/server.hytopia.playercamera.trackedentity.md +13 -0
  37. package/docs/server.hytopia.playercamera.trackedposition.md +13 -0
  38. package/docs/server.hytopia.playercamera.zoom.md +13 -0
  39. package/docs/server.hytopia.playercameraeventpayload.lookatentity.entity.md +11 -0
  40. package/docs/server.hytopia.playercameraeventpayload.lookatentity.md +70 -0
  41. package/docs/server.hytopia.playercameraeventpayload.lookatentity.playercamera.md +11 -0
  42. package/docs/server.hytopia.playercameraeventpayload.lookatposition.md +70 -0
  43. package/docs/server.hytopia.playercameraeventpayload.lookatposition.playercamera.md +11 -0
  44. package/docs/server.hytopia.playercameraeventpayload.lookatposition.position.md +11 -0
  45. package/docs/server.hytopia.playercameraeventpayload.md +145 -0
  46. package/docs/server.hytopia.playercameraeventpayload.setattachedtoentity.entity.md +11 -0
  47. package/docs/server.hytopia.playercameraeventpayload.setattachedtoentity.md +70 -0
  48. package/docs/server.hytopia.playercameraeventpayload.setattachedtoentity.playercamera.md +11 -0
  49. package/docs/server.hytopia.playercameraeventpayload.setattachedtoposition.md +70 -0
  50. package/docs/server.hytopia.playercameraeventpayload.setattachedtoposition.playercamera.md +11 -0
  51. package/docs/server.hytopia.playercameraeventpayload.setattachedtoposition.position.md +11 -0
  52. package/docs/server.hytopia.playercameraeventpayload.setfilmoffset.filmoffset.md +11 -0
  53. package/docs/server.hytopia.playercameraeventpayload.setfilmoffset.md +70 -0
  54. package/docs/server.hytopia.playercameraeventpayload.setfilmoffset.playercamera.md +11 -0
  55. package/docs/server.hytopia.playercameraeventpayload.setforwardoffset.forwardoffset.md +11 -0
  56. package/docs/server.hytopia.playercameraeventpayload.setforwardoffset.md +70 -0
  57. package/docs/server.hytopia.playercameraeventpayload.setforwardoffset.playercamera.md +11 -0
  58. package/docs/server.hytopia.playercameraeventpayload.setfov.fov.md +11 -0
  59. package/docs/server.hytopia.playercameraeventpayload.setfov.md +70 -0
  60. package/docs/server.hytopia.playercameraeventpayload.setfov.playercamera.md +11 -0
  61. package/docs/server.hytopia.playercameraeventpayload.sethiddenmodelnodes.hiddenmodelnodes.md +11 -0
  62. package/docs/server.hytopia.playercameraeventpayload.sethiddenmodelnodes.md +70 -0
  63. package/docs/server.hytopia.playercameraeventpayload.sethiddenmodelnodes.playercamera.md +11 -0
  64. package/docs/server.hytopia.playercameraeventpayload.setmode.md +70 -0
  65. package/docs/server.hytopia.playercameraeventpayload.setmode.mode.md +11 -0
  66. package/docs/server.hytopia.playercameraeventpayload.setmode.playercamera.md +11 -0
  67. package/docs/server.hytopia.playercameraeventpayload.setoffset.md +70 -0
  68. package/docs/server.hytopia.playercameraeventpayload.setoffset.offset.md +11 -0
  69. package/docs/server.hytopia.playercameraeventpayload.setoffset.playercamera.md +11 -0
  70. package/docs/server.hytopia.playercameraeventpayload.settrackedentity.entity.md +11 -0
  71. package/docs/server.hytopia.playercameraeventpayload.settrackedentity.md +70 -0
  72. package/docs/server.hytopia.playercameraeventpayload.settrackedentity.playercamera.md +11 -0
  73. package/docs/server.hytopia.playercameraeventpayload.settrackedposition.md +70 -0
  74. package/docs/server.hytopia.playercameraeventpayload.settrackedposition.playercamera.md +11 -0
  75. package/docs/server.hytopia.playercameraeventpayload.settrackedposition.position.md +11 -0
  76. package/docs/server.hytopia.playercameraeventpayload.setzoom.md +70 -0
  77. package/docs/server.hytopia.playercameraeventpayload.setzoom.playercamera.md +11 -0
  78. package/docs/server.hytopia.playercameraeventpayload.setzoom.zoom.md +11 -0
  79. package/docs/server.hytopia.playercameraeventtype.md +215 -0
  80. package/docs/server.hytopia.playercameramode.md +59 -0
  81. package/docs/server.md +42 -0
  82. package/docs/server.player.camera.md +13 -0
  83. package/docs/server.player.md +21 -0
  84. package/docs/server.playercamera.attachedtoentity.md +13 -0
  85. package/docs/server.playercamera.attachedtoposition.md +13 -0
  86. package/docs/server.playercamera.filmoffset.md +13 -0
  87. package/docs/server.playercamera.forwardoffset.md +13 -0
  88. package/docs/server.playercamera.fov.md +13 -0
  89. package/docs/server.playercamera.hiddenmodelnodes.md +13 -0
  90. package/docs/server.playercamera.lookatentity.md +53 -0
  91. package/docs/server.playercamera.lookatposition.md +53 -0
  92. package/docs/server.playercamera.md +506 -0
  93. package/docs/server.playercamera.mode.md +13 -0
  94. package/docs/server.playercamera.offset.md +13 -0
  95. package/docs/server.playercamera.player.md +13 -0
  96. package/docs/server.playercamera.setattachedtoentity.md +53 -0
  97. package/docs/server.playercamera.setattachedtoposition.md +53 -0
  98. package/docs/server.playercamera.setfilmoffset.md +53 -0
  99. package/docs/server.playercamera.setforwardoffset.md +53 -0
  100. package/docs/server.playercamera.setfov.md +53 -0
  101. package/docs/server.playercamera.sethiddenmodelnodes.md +53 -0
  102. package/docs/server.playercamera.setmode.md +53 -0
  103. package/docs/server.playercamera.setoffset.md +53 -0
  104. package/docs/server.playercamera.settrackedentity.md +53 -0
  105. package/docs/server.playercamera.settrackedposition.md +53 -0
  106. package/docs/server.playercamera.setzoom.md +53 -0
  107. package/docs/server.playercamera.trackedentity.md +13 -0
  108. package/docs/server.playercamera.trackedposition.md +13 -0
  109. package/docs/server.playercamera.zoom.md +13 -0
  110. package/docs/server.playercameraeventpayload.lookatentity.entity.md +11 -0
  111. package/docs/server.playercameraeventpayload.lookatentity.md +70 -0
  112. package/docs/server.playercameraeventpayload.lookatentity.playercamera.md +11 -0
  113. package/docs/server.playercameraeventpayload.lookatposition.md +70 -0
  114. package/docs/server.playercameraeventpayload.lookatposition.playercamera.md +11 -0
  115. package/docs/server.playercameraeventpayload.lookatposition.position.md +11 -0
  116. package/docs/server.playercameraeventpayload.md +145 -0
  117. package/docs/server.playercameraeventpayload.setattachedtoentity.entity.md +11 -0
  118. package/docs/server.playercameraeventpayload.setattachedtoentity.md +70 -0
  119. package/docs/server.playercameraeventpayload.setattachedtoentity.playercamera.md +11 -0
  120. package/docs/server.playercameraeventpayload.setattachedtoposition.md +70 -0
  121. package/docs/server.playercameraeventpayload.setattachedtoposition.playercamera.md +11 -0
  122. package/docs/server.playercameraeventpayload.setattachedtoposition.position.md +11 -0
  123. package/docs/server.playercameraeventpayload.setfilmoffset.filmoffset.md +11 -0
  124. package/docs/server.playercameraeventpayload.setfilmoffset.md +70 -0
  125. package/docs/server.playercameraeventpayload.setfilmoffset.playercamera.md +11 -0
  126. package/docs/server.playercameraeventpayload.setforwardoffset.forwardoffset.md +11 -0
  127. package/docs/server.playercameraeventpayload.setforwardoffset.md +70 -0
  128. package/docs/server.playercameraeventpayload.setforwardoffset.playercamera.md +11 -0
  129. package/docs/server.playercameraeventpayload.setfov.fov.md +11 -0
  130. package/docs/server.playercameraeventpayload.setfov.md +70 -0
  131. package/docs/server.playercameraeventpayload.setfov.playercamera.md +11 -0
  132. package/docs/server.playercameraeventpayload.sethiddenmodelnodes.hiddenmodelnodes.md +11 -0
  133. package/docs/server.playercameraeventpayload.sethiddenmodelnodes.md +70 -0
  134. package/docs/server.playercameraeventpayload.sethiddenmodelnodes.playercamera.md +11 -0
  135. package/docs/server.playercameraeventpayload.setmode.md +70 -0
  136. package/docs/server.playercameraeventpayload.setmode.mode.md +11 -0
  137. package/docs/server.playercameraeventpayload.setmode.playercamera.md +11 -0
  138. package/docs/server.playercameraeventpayload.setoffset.md +70 -0
  139. package/docs/server.playercameraeventpayload.setoffset.offset.md +11 -0
  140. package/docs/server.playercameraeventpayload.setoffset.playercamera.md +11 -0
  141. package/docs/server.playercameraeventpayload.settrackedentity.entity.md +11 -0
  142. package/docs/server.playercameraeventpayload.settrackedentity.md +70 -0
  143. package/docs/server.playercameraeventpayload.settrackedentity.playercamera.md +11 -0
  144. package/docs/server.playercameraeventpayload.settrackedposition.md +70 -0
  145. package/docs/server.playercameraeventpayload.settrackedposition.playercamera.md +11 -0
  146. package/docs/server.playercameraeventpayload.settrackedposition.position.md +11 -0
  147. package/docs/server.playercameraeventpayload.setzoom.md +70 -0
  148. package/docs/server.playercameraeventpayload.setzoom.playercamera.md +11 -0
  149. package/docs/server.playercameraeventpayload.setzoom.zoom.md +11 -0
  150. package/docs/server.playercameraeventtype.md +215 -0
  151. package/docs/server.playercameramode.md +59 -0
  152. package/examples/payload-game/index.ts +1 -1
  153. package/package.json +1 -1
  154. package/server.api.json +9023 -4203
  155. package/server.d.ts +222 -4
  156. package/server.js +118 -61
  157. package/examples/character-controller/package.json +0 -14
  158. package/examples/entity-spawn/package.json +0 -14
  159. package/examples/payload-game/package.json +0 -14
@@ -0,0 +1,506 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [PlayerCamera](./server.playercamera.md)
4
+
5
+ ## PlayerCamera class
6
+
7
+ The camera for a Player.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export default class PlayerCamera implements protocol.Serializable
13
+ ```
14
+ **Implements:** protocol.Serializable
15
+
16
+ ## Remarks
17
+
18
+ The camera is used to render the player's view of the world. The player's camera exposes functionality to control the camera of a player. All player objects have a camera, accessible via [Player.camera](./server.player.camera.md)<!-- -->.
19
+
20
+ The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the `PlayerCamera` class.
21
+
22
+ ## Example
23
+
24
+
25
+ ```typescript
26
+ player.camera.setMode(PlayerCameraMode.FIRST_PERSON);
27
+ ```
28
+
29
+ ## Properties
30
+
31
+ <table><thead><tr><th>
32
+
33
+ Property
34
+
35
+
36
+ </th><th>
37
+
38
+ Modifiers
39
+
40
+
41
+ </th><th>
42
+
43
+ Type
44
+
45
+
46
+ </th><th>
47
+
48
+ Description
49
+
50
+
51
+ </th></tr></thead>
52
+ <tbody><tr><td>
53
+
54
+ [attachedToEntity](./server.playercamera.attachedtoentity.md)
55
+
56
+
57
+ </td><td>
58
+
59
+ `readonly`
60
+
61
+
62
+ </td><td>
63
+
64
+ [Entity](./server.entity.md) \| undefined
65
+
66
+
67
+ </td><td>
68
+
69
+ The entity the camera is attached to.
70
+
71
+
72
+ </td></tr>
73
+ <tr><td>
74
+
75
+ [attachedToPosition](./server.playercamera.attachedtoposition.md)
76
+
77
+
78
+ </td><td>
79
+
80
+ `readonly`
81
+
82
+
83
+ </td><td>
84
+
85
+ [Vector3](./server.vector3.md) \| undefined
86
+
87
+
88
+ </td><td>
89
+
90
+ The position the camera is attached to.
91
+
92
+
93
+ </td></tr>
94
+ <tr><td>
95
+
96
+ [filmOffset](./server.playercamera.filmoffset.md)
97
+
98
+
99
+ </td><td>
100
+
101
+ `readonly`
102
+
103
+
104
+ </td><td>
105
+
106
+ number
107
+
108
+
109
+ </td><td>
110
+
111
+ The film offset of the camera. A positive value shifts the camera right, a negative value shifts it left.
112
+
113
+
114
+ </td></tr>
115
+ <tr><td>
116
+
117
+ [forwardOffset](./server.playercamera.forwardoffset.md)
118
+
119
+
120
+ </td><td>
121
+
122
+ `readonly`
123
+
124
+
125
+ </td><td>
126
+
127
+ number
128
+
129
+
130
+ </td><td>
131
+
132
+ Only used in first-person mode. The forward offset of the camera. A positive number shifts the camera forward, a negative number shifts it backward.
133
+
134
+
135
+ </td></tr>
136
+ <tr><td>
137
+
138
+ [fov](./server.playercamera.fov.md)
139
+
140
+
141
+ </td><td>
142
+
143
+ `readonly`
144
+
145
+
146
+ </td><td>
147
+
148
+ number
149
+
150
+
151
+ </td><td>
152
+
153
+ The field of view of the camera.
154
+
155
+
156
+ </td></tr>
157
+ <tr><td>
158
+
159
+ [hiddenModelNodes](./server.playercamera.hiddenmodelnodes.md)
160
+
161
+
162
+ </td><td>
163
+
164
+ `readonly`
165
+
166
+
167
+ </td><td>
168
+
169
+ Set&lt;string&gt;
170
+
171
+
172
+ </td><td>
173
+
174
+ The nodes of the model the camera is attached to that will not be rendered for the player. Uses case insensitive substring matching.
175
+
176
+
177
+ </td></tr>
178
+ <tr><td>
179
+
180
+ [mode](./server.playercamera.mode.md)
181
+
182
+
183
+ </td><td>
184
+
185
+ `readonly`
186
+
187
+
188
+ </td><td>
189
+
190
+ [PlayerCameraMode](./server.playercameramode.md)
191
+
192
+
193
+ </td><td>
194
+
195
+ The mode of the camera.
196
+
197
+
198
+ </td></tr>
199
+ <tr><td>
200
+
201
+ [offset](./server.playercamera.offset.md)
202
+
203
+
204
+ </td><td>
205
+
206
+ `readonly`
207
+
208
+
209
+ </td><td>
210
+
211
+ [Vector3](./server.vector3.md)
212
+
213
+
214
+ </td><td>
215
+
216
+ The relative offset of the camera from the entity or position it is attached to.
217
+
218
+
219
+ </td></tr>
220
+ <tr><td>
221
+
222
+ [player](./server.playercamera.player.md)
223
+
224
+
225
+ </td><td>
226
+
227
+ `readonly`
228
+
229
+
230
+ </td><td>
231
+
232
+ [Player](./server.player.md)
233
+
234
+
235
+ </td><td>
236
+
237
+ The player that the camera belongs to.
238
+
239
+
240
+ </td></tr>
241
+ <tr><td>
242
+
243
+ [trackedEntity](./server.playercamera.trackedentity.md)
244
+
245
+
246
+ </td><td>
247
+
248
+ `readonly`
249
+
250
+
251
+ </td><td>
252
+
253
+ [Entity](./server.entity.md) \| undefined
254
+
255
+
256
+ </td><td>
257
+
258
+ The entity the camera will constantly look at, even if the camera attached or tracked entity moves.
259
+
260
+
261
+ </td></tr>
262
+ <tr><td>
263
+
264
+ [trackedPosition](./server.playercamera.trackedposition.md)
265
+
266
+
267
+ </td><td>
268
+
269
+ `readonly`
270
+
271
+
272
+ </td><td>
273
+
274
+ [Vector3](./server.vector3.md) \| undefined
275
+
276
+
277
+ </td><td>
278
+
279
+ The position the camera will constantly look at, even if the camera attached entity moves.
280
+
281
+
282
+ </td></tr>
283
+ <tr><td>
284
+
285
+ [zoom](./server.playercamera.zoom.md)
286
+
287
+
288
+ </td><td>
289
+
290
+ `readonly`
291
+
292
+
293
+ </td><td>
294
+
295
+ number
296
+
297
+
298
+ </td><td>
299
+
300
+ The zoom of the camera.
301
+
302
+
303
+ </td></tr>
304
+ </tbody></table>
305
+
306
+ ## Methods
307
+
308
+ <table><thead><tr><th>
309
+
310
+ Method
311
+
312
+
313
+ </th><th>
314
+
315
+ Modifiers
316
+
317
+
318
+ </th><th>
319
+
320
+ Description
321
+
322
+
323
+ </th></tr></thead>
324
+ <tbody><tr><td>
325
+
326
+ [lookAtEntity(entity)](./server.playercamera.lookatentity.md)
327
+
328
+
329
+ </td><td>
330
+
331
+
332
+ </td><td>
333
+
334
+ Makes the camera look at an entity. If the camera was previously tracking an entity or position, it will stop tracking.
335
+
336
+
337
+ </td></tr>
338
+ <tr><td>
339
+
340
+ [lookAtPosition(position)](./server.playercamera.lookatposition.md)
341
+
342
+
343
+ </td><td>
344
+
345
+
346
+ </td><td>
347
+
348
+ Makes the camera look at a position. If the camera was previously tracking an entity or position, it will stop tracking.
349
+
350
+
351
+ </td></tr>
352
+ <tr><td>
353
+
354
+ [setAttachedToEntity(entity)](./server.playercamera.setattachedtoentity.md)
355
+
356
+
357
+ </td><td>
358
+
359
+
360
+ </td><td>
361
+
362
+ Sets the entity the camera is attached to.
363
+
364
+
365
+ </td></tr>
366
+ <tr><td>
367
+
368
+ [setAttachedToPosition(position)](./server.playercamera.setattachedtoposition.md)
369
+
370
+
371
+ </td><td>
372
+
373
+
374
+ </td><td>
375
+
376
+ Sets the position the camera is attached to.
377
+
378
+
379
+ </td></tr>
380
+ <tr><td>
381
+
382
+ [setFilmOffset(filmOffset)](./server.playercamera.setfilmoffset.md)
383
+
384
+
385
+ </td><td>
386
+
387
+
388
+ </td><td>
389
+
390
+ Sets the film offset of the camera. A positive value shifts the camera right, a negative value shifts it left.
391
+
392
+
393
+ </td></tr>
394
+ <tr><td>
395
+
396
+ [setForwardOffset(forwardOffset)](./server.playercamera.setforwardoffset.md)
397
+
398
+
399
+ </td><td>
400
+
401
+
402
+ </td><td>
403
+
404
+ Only used in first-person mode. Sets the forward offset of the camera. A positive value shifts the camera forward, a negative value shifts it backward.
405
+
406
+
407
+ </td></tr>
408
+ <tr><td>
409
+
410
+ [setFov(fov)](./server.playercamera.setfov.md)
411
+
412
+
413
+ </td><td>
414
+
415
+
416
+ </td><td>
417
+
418
+ Sets the field of view of the camera.
419
+
420
+
421
+ </td></tr>
422
+ <tr><td>
423
+
424
+ [setHiddenModelNodes(hiddenModelNodes)](./server.playercamera.sethiddenmodelnodes.md)
425
+
426
+
427
+ </td><td>
428
+
429
+
430
+ </td><td>
431
+
432
+ Sets the nodes of the model the camera is attached to that will not be rendered for the player. Uses case insensitive substring matching.
433
+
434
+
435
+ </td></tr>
436
+ <tr><td>
437
+
438
+ [setMode(mode)](./server.playercamera.setmode.md)
439
+
440
+
441
+ </td><td>
442
+
443
+
444
+ </td><td>
445
+
446
+ Sets the mode of the camera.
447
+
448
+
449
+ </td></tr>
450
+ <tr><td>
451
+
452
+ [setOffset(offset)](./server.playercamera.setoffset.md)
453
+
454
+
455
+ </td><td>
456
+
457
+
458
+ </td><td>
459
+
460
+ Sets the relative offset of the camera from the entity or position it is attached to.
461
+
462
+
463
+ </td></tr>
464
+ <tr><td>
465
+
466
+ [setTrackedEntity(entity)](./server.playercamera.settrackedentity.md)
467
+
468
+
469
+ </td><td>
470
+
471
+
472
+ </td><td>
473
+
474
+ Sets the entity the camera will constantly look at, even if the camera attached or tracked entity moves.
475
+
476
+
477
+ </td></tr>
478
+ <tr><td>
479
+
480
+ [setTrackedPosition(position)](./server.playercamera.settrackedposition.md)
481
+
482
+
483
+ </td><td>
484
+
485
+
486
+ </td><td>
487
+
488
+ Sets the position the camera will constantly look at, even if the camera attached entity moves.
489
+
490
+
491
+ </td></tr>
492
+ <tr><td>
493
+
494
+ [setZoom(zoom)](./server.playercamera.setzoom.md)
495
+
496
+
497
+ </td><td>
498
+
499
+
500
+ </td><td>
501
+
502
+ Sets the zoom of the camera.
503
+
504
+
505
+ </td></tr>
506
+ </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; [PlayerCamera](./server.playercamera.md) &gt; [mode](./server.playercamera.mode.md)
4
+
5
+ ## PlayerCamera.mode property
6
+
7
+ The mode of the camera.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ get mode(): PlayerCameraMode;
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; [PlayerCamera](./server.playercamera.md) &gt; [offset](./server.playercamera.offset.md)
4
+
5
+ ## PlayerCamera.offset property
6
+
7
+ The relative offset of the camera from the entity or position it is attached to.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ get offset(): 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; [PlayerCamera](./server.playercamera.md) &gt; [player](./server.playercamera.player.md)
4
+
5
+ ## PlayerCamera.player property
6
+
7
+ The player that the camera belongs to.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ readonly player: Player;
13
+ ```
@@ -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; [PlayerCamera](./server.playercamera.md) &gt; [setAttachedToEntity](./server.playercamera.setattachedtoentity.md)
4
+
5
+ ## PlayerCamera.setAttachedToEntity() method
6
+
7
+ Sets the entity the camera is attached to.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ setAttachedToEntity(entity: Entity): 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
+ entity
36
+
37
+
38
+ </td><td>
39
+
40
+ [Entity](./server.entity.md)
41
+
42
+
43
+ </td><td>
44
+
45
+ The entity to attach the camera to.
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; [PlayerCamera](./server.playercamera.md) &gt; [setAttachedToPosition](./server.playercamera.setattachedtoposition.md)
4
+
5
+ ## PlayerCamera.setAttachedToPosition() method
6
+
7
+ Sets the position the camera is attached to.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ setAttachedToPosition(position: Vector3): 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
+ position
36
+
37
+
38
+ </td><td>
39
+
40
+ [Vector3](./server.vector3.md)
41
+
42
+
43
+ </td><td>
44
+
45
+ The position to attach the camera to.
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; [PlayerCamera](./server.playercamera.md) &gt; [setFilmOffset](./server.playercamera.setfilmoffset.md)
4
+
5
+ ## PlayerCamera.setFilmOffset() method
6
+
7
+ Sets the film offset of the camera. A positive value shifts the camera right, a negative value shifts it left.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ setFilmOffset(filmOffset: 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
+ filmOffset
36
+
37
+
38
+ </td><td>
39
+
40
+ number
41
+
42
+
43
+ </td><td>
44
+
45
+ The film offset to set.
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
50
+ **Returns:**
51
+
52
+ void
53
+