hytopia 0.1.30 → 0.1.32
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +3 -26
- package/bin/scripts.js +14 -8
- package/boilerplate/assets/map.json +2 -2
- package/docs/server.entity.md +2 -2
- package/docs/server.entity.onblockcollision.md +1 -1
- package/docs/server.entity.onblockcontactforce.md +1 -1
- package/docs/server.hytopia.entity.md +2 -2
- package/docs/server.hytopia.entity.onblockcollision.md +1 -1
- package/docs/server.hytopia.entity.onblockcontactforce.md +1 -1
- package/docs/server.hytopia.md +42 -0
- package/docs/server.hytopia.player.camera.md +13 -0
- package/docs/server.hytopia.player.md +21 -0
- package/docs/server.hytopia.playercamera.attachedtoentity.md +13 -0
- package/docs/server.hytopia.playercamera.attachedtoposition.md +13 -0
- package/docs/server.hytopia.playercamera.filmoffset.md +13 -0
- package/docs/server.hytopia.playercamera.forwardoffset.md +13 -0
- package/docs/server.hytopia.playercamera.fov.md +13 -0
- package/docs/server.hytopia.playercamera.hiddenmodelnodes.md +13 -0
- package/docs/server.hytopia.playercamera.lookatentity.md +53 -0
- package/docs/server.hytopia.playercamera.lookatposition.md +53 -0
- package/docs/server.hytopia.playercamera.md +506 -0
- package/docs/server.hytopia.playercamera.mode.md +13 -0
- package/docs/server.hytopia.playercamera.offset.md +13 -0
- package/docs/server.hytopia.playercamera.player.md +13 -0
- package/docs/server.hytopia.playercamera.setattachedtoentity.md +53 -0
- package/docs/server.hytopia.playercamera.setattachedtoposition.md +53 -0
- package/docs/server.hytopia.playercamera.setfilmoffset.md +53 -0
- package/docs/server.hytopia.playercamera.setforwardoffset.md +53 -0
- package/docs/server.hytopia.playercamera.setfov.md +53 -0
- package/docs/server.hytopia.playercamera.sethiddenmodelnodes.md +53 -0
- package/docs/server.hytopia.playercamera.setmode.md +53 -0
- package/docs/server.hytopia.playercamera.setoffset.md +53 -0
- package/docs/server.hytopia.playercamera.settrackedentity.md +53 -0
- package/docs/server.hytopia.playercamera.settrackedposition.md +53 -0
- package/docs/server.hytopia.playercamera.setzoom.md +53 -0
- package/docs/server.hytopia.playercamera.trackedentity.md +13 -0
- package/docs/server.hytopia.playercamera.trackedposition.md +13 -0
- package/docs/server.hytopia.playercamera.zoom.md +13 -0
- package/docs/server.hytopia.playercameraeventpayload.lookatentity.entity.md +11 -0
- package/docs/server.hytopia.playercameraeventpayload.lookatentity.md +70 -0
- package/docs/server.hytopia.playercameraeventpayload.lookatentity.playercamera.md +11 -0
- package/docs/server.hytopia.playercameraeventpayload.lookatposition.md +70 -0
- package/docs/server.hytopia.playercameraeventpayload.lookatposition.playercamera.md +11 -0
- package/docs/server.hytopia.playercameraeventpayload.lookatposition.position.md +11 -0
- package/docs/server.hytopia.playercameraeventpayload.md +145 -0
- package/docs/server.hytopia.playercameraeventpayload.setattachedtoentity.entity.md +11 -0
- package/docs/server.hytopia.playercameraeventpayload.setattachedtoentity.md +70 -0
- package/docs/server.hytopia.playercameraeventpayload.setattachedtoentity.playercamera.md +11 -0
- package/docs/server.hytopia.playercameraeventpayload.setattachedtoposition.md +70 -0
- package/docs/server.hytopia.playercameraeventpayload.setattachedtoposition.playercamera.md +11 -0
- package/docs/server.hytopia.playercameraeventpayload.setattachedtoposition.position.md +11 -0
- package/docs/server.hytopia.playercameraeventpayload.setfilmoffset.filmoffset.md +11 -0
- package/docs/server.hytopia.playercameraeventpayload.setfilmoffset.md +70 -0
- package/docs/server.hytopia.playercameraeventpayload.setfilmoffset.playercamera.md +11 -0
- package/docs/server.hytopia.playercameraeventpayload.setforwardoffset.forwardoffset.md +11 -0
- package/docs/server.hytopia.playercameraeventpayload.setforwardoffset.md +70 -0
- package/docs/server.hytopia.playercameraeventpayload.setforwardoffset.playercamera.md +11 -0
- package/docs/server.hytopia.playercameraeventpayload.setfov.fov.md +11 -0
- package/docs/server.hytopia.playercameraeventpayload.setfov.md +70 -0
- package/docs/server.hytopia.playercameraeventpayload.setfov.playercamera.md +11 -0
- package/docs/server.hytopia.playercameraeventpayload.sethiddenmodelnodes.hiddenmodelnodes.md +11 -0
- package/docs/server.hytopia.playercameraeventpayload.sethiddenmodelnodes.md +70 -0
- package/docs/server.hytopia.playercameraeventpayload.sethiddenmodelnodes.playercamera.md +11 -0
- package/docs/server.hytopia.playercameraeventpayload.setmode.md +70 -0
- package/docs/server.hytopia.playercameraeventpayload.setmode.mode.md +11 -0
- package/docs/server.hytopia.playercameraeventpayload.setmode.playercamera.md +11 -0
- package/docs/server.hytopia.playercameraeventpayload.setoffset.md +70 -0
- package/docs/server.hytopia.playercameraeventpayload.setoffset.offset.md +11 -0
- package/docs/server.hytopia.playercameraeventpayload.setoffset.playercamera.md +11 -0
- package/docs/server.hytopia.playercameraeventpayload.settrackedentity.entity.md +11 -0
- package/docs/server.hytopia.playercameraeventpayload.settrackedentity.md +70 -0
- package/docs/server.hytopia.playercameraeventpayload.settrackedentity.playercamera.md +11 -0
- package/docs/server.hytopia.playercameraeventpayload.settrackedposition.md +70 -0
- package/docs/server.hytopia.playercameraeventpayload.settrackedposition.playercamera.md +11 -0
- package/docs/server.hytopia.playercameraeventpayload.settrackedposition.position.md +11 -0
- package/docs/server.hytopia.playercameraeventpayload.setzoom.md +70 -0
- package/docs/server.hytopia.playercameraeventpayload.setzoom.playercamera.md +11 -0
- package/docs/server.hytopia.playercameraeventpayload.setzoom.zoom.md +11 -0
- package/docs/server.hytopia.playercameraeventtype.md +215 -0
- package/docs/server.hytopia.playercameramode.md +59 -0
- package/docs/server.md +42 -0
- package/docs/server.player.camera.md +13 -0
- package/docs/server.player.md +21 -0
- package/docs/server.playercamera.attachedtoentity.md +13 -0
- package/docs/server.playercamera.attachedtoposition.md +13 -0
- package/docs/server.playercamera.filmoffset.md +13 -0
- package/docs/server.playercamera.forwardoffset.md +13 -0
- package/docs/server.playercamera.fov.md +13 -0
- package/docs/server.playercamera.hiddenmodelnodes.md +13 -0
- package/docs/server.playercamera.lookatentity.md +53 -0
- package/docs/server.playercamera.lookatposition.md +53 -0
- package/docs/server.playercamera.md +506 -0
- package/docs/server.playercamera.mode.md +13 -0
- package/docs/server.playercamera.offset.md +13 -0
- package/docs/server.playercamera.player.md +13 -0
- package/docs/server.playercamera.setattachedtoentity.md +53 -0
- package/docs/server.playercamera.setattachedtoposition.md +53 -0
- package/docs/server.playercamera.setfilmoffset.md +53 -0
- package/docs/server.playercamera.setforwardoffset.md +53 -0
- package/docs/server.playercamera.setfov.md +53 -0
- package/docs/server.playercamera.sethiddenmodelnodes.md +53 -0
- package/docs/server.playercamera.setmode.md +53 -0
- package/docs/server.playercamera.setoffset.md +53 -0
- package/docs/server.playercamera.settrackedentity.md +53 -0
- package/docs/server.playercamera.settrackedposition.md +53 -0
- package/docs/server.playercamera.setzoom.md +53 -0
- package/docs/server.playercamera.trackedentity.md +13 -0
- package/docs/server.playercamera.trackedposition.md +13 -0
- package/docs/server.playercamera.zoom.md +13 -0
- package/docs/server.playercameraeventpayload.lookatentity.entity.md +11 -0
- package/docs/server.playercameraeventpayload.lookatentity.md +70 -0
- package/docs/server.playercameraeventpayload.lookatentity.playercamera.md +11 -0
- package/docs/server.playercameraeventpayload.lookatposition.md +70 -0
- package/docs/server.playercameraeventpayload.lookatposition.playercamera.md +11 -0
- package/docs/server.playercameraeventpayload.lookatposition.position.md +11 -0
- package/docs/server.playercameraeventpayload.md +145 -0
- package/docs/server.playercameraeventpayload.setattachedtoentity.entity.md +11 -0
- package/docs/server.playercameraeventpayload.setattachedtoentity.md +70 -0
- package/docs/server.playercameraeventpayload.setattachedtoentity.playercamera.md +11 -0
- package/docs/server.playercameraeventpayload.setattachedtoposition.md +70 -0
- package/docs/server.playercameraeventpayload.setattachedtoposition.playercamera.md +11 -0
- package/docs/server.playercameraeventpayload.setattachedtoposition.position.md +11 -0
- package/docs/server.playercameraeventpayload.setfilmoffset.filmoffset.md +11 -0
- package/docs/server.playercameraeventpayload.setfilmoffset.md +70 -0
- package/docs/server.playercameraeventpayload.setfilmoffset.playercamera.md +11 -0
- package/docs/server.playercameraeventpayload.setforwardoffset.forwardoffset.md +11 -0
- package/docs/server.playercameraeventpayload.setforwardoffset.md +70 -0
- package/docs/server.playercameraeventpayload.setforwardoffset.playercamera.md +11 -0
- package/docs/server.playercameraeventpayload.setfov.fov.md +11 -0
- package/docs/server.playercameraeventpayload.setfov.md +70 -0
- package/docs/server.playercameraeventpayload.setfov.playercamera.md +11 -0
- package/docs/server.playercameraeventpayload.sethiddenmodelnodes.hiddenmodelnodes.md +11 -0
- package/docs/server.playercameraeventpayload.sethiddenmodelnodes.md +70 -0
- package/docs/server.playercameraeventpayload.sethiddenmodelnodes.playercamera.md +11 -0
- package/docs/server.playercameraeventpayload.setmode.md +70 -0
- package/docs/server.playercameraeventpayload.setmode.mode.md +11 -0
- package/docs/server.playercameraeventpayload.setmode.playercamera.md +11 -0
- package/docs/server.playercameraeventpayload.setoffset.md +70 -0
- package/docs/server.playercameraeventpayload.setoffset.offset.md +11 -0
- package/docs/server.playercameraeventpayload.setoffset.playercamera.md +11 -0
- package/docs/server.playercameraeventpayload.settrackedentity.entity.md +11 -0
- package/docs/server.playercameraeventpayload.settrackedentity.md +70 -0
- package/docs/server.playercameraeventpayload.settrackedentity.playercamera.md +11 -0
- package/docs/server.playercameraeventpayload.settrackedposition.md +70 -0
- package/docs/server.playercameraeventpayload.settrackedposition.playercamera.md +11 -0
- package/docs/server.playercameraeventpayload.settrackedposition.position.md +11 -0
- package/docs/server.playercameraeventpayload.setzoom.md +70 -0
- package/docs/server.playercameraeventpayload.setzoom.playercamera.md +11 -0
- package/docs/server.playercameraeventpayload.setzoom.zoom.md +11 -0
- package/docs/server.playercameraeventtype.md +215 -0
- package/docs/server.playercameramode.md +59 -0
- package/examples/payload-game/index.ts +1 -1
- package/package.json +1 -1
- package/server.api.json +9023 -4203
- package/server.d.ts +222 -4
- package/server.js +118 -61
- package/examples/character-controller/package.json +0 -14
- package/examples/entity-spawn/package.json +0 -14
- package/examples/payload-game/package.json +0 -14
@@ -0,0 +1,215 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [HYTOPIA](./server.hytopia.md) > [PlayerCameraEventType](./server.hytopia.playercameraeventtype.md)
|
4
|
+
|
5
|
+
## HYTOPIA.PlayerCameraEventType enum
|
6
|
+
|
7
|
+
Event types a PlayerCamera can emit.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
export declare enum PlayerCameraEventType
|
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
|
+
LOOK\_AT\_ENTITY
|
36
|
+
|
37
|
+
|
38
|
+
</td><td>
|
39
|
+
|
40
|
+
`"PLAYER_CAMERA.LOOK_AT_ENTITY"`
|
41
|
+
|
42
|
+
|
43
|
+
</td><td>
|
44
|
+
|
45
|
+
|
46
|
+
</td></tr>
|
47
|
+
<tr><td>
|
48
|
+
|
49
|
+
LOOK\_AT\_POSITION
|
50
|
+
|
51
|
+
|
52
|
+
</td><td>
|
53
|
+
|
54
|
+
`"PLAYER_CAMERA.LOOK_AT_POSITION"`
|
55
|
+
|
56
|
+
|
57
|
+
</td><td>
|
58
|
+
|
59
|
+
|
60
|
+
</td></tr>
|
61
|
+
<tr><td>
|
62
|
+
|
63
|
+
SET\_ATTACHED\_TO\_ENTITY
|
64
|
+
|
65
|
+
|
66
|
+
</td><td>
|
67
|
+
|
68
|
+
`"PLAYER_CAMERA.SET_ATTACHED_TO_ENTITY"`
|
69
|
+
|
70
|
+
|
71
|
+
</td><td>
|
72
|
+
|
73
|
+
|
74
|
+
</td></tr>
|
75
|
+
<tr><td>
|
76
|
+
|
77
|
+
SET\_ATTACHED\_TO\_POSITION
|
78
|
+
|
79
|
+
|
80
|
+
</td><td>
|
81
|
+
|
82
|
+
`"PLAYER_CAMERA.SET_ATTACHED_TO_POSITION"`
|
83
|
+
|
84
|
+
|
85
|
+
</td><td>
|
86
|
+
|
87
|
+
|
88
|
+
</td></tr>
|
89
|
+
<tr><td>
|
90
|
+
|
91
|
+
SET\_FILM\_OFFSET
|
92
|
+
|
93
|
+
|
94
|
+
</td><td>
|
95
|
+
|
96
|
+
`"PLAYER_CAMERA.SET_FILM_OFFSET"`
|
97
|
+
|
98
|
+
|
99
|
+
</td><td>
|
100
|
+
|
101
|
+
|
102
|
+
</td></tr>
|
103
|
+
<tr><td>
|
104
|
+
|
105
|
+
SET\_FORWARD\_OFFSET
|
106
|
+
|
107
|
+
|
108
|
+
</td><td>
|
109
|
+
|
110
|
+
`"PLAYER_CAMERA.SET_FORWARD_OFFSET"`
|
111
|
+
|
112
|
+
|
113
|
+
</td><td>
|
114
|
+
|
115
|
+
|
116
|
+
</td></tr>
|
117
|
+
<tr><td>
|
118
|
+
|
119
|
+
SET\_FOV
|
120
|
+
|
121
|
+
|
122
|
+
</td><td>
|
123
|
+
|
124
|
+
`"PLAYER_CAMERA.SET_FOV"`
|
125
|
+
|
126
|
+
|
127
|
+
</td><td>
|
128
|
+
|
129
|
+
|
130
|
+
</td></tr>
|
131
|
+
<tr><td>
|
132
|
+
|
133
|
+
SET\_HIDDEN\_MODEL\_NODES
|
134
|
+
|
135
|
+
|
136
|
+
</td><td>
|
137
|
+
|
138
|
+
`"PLAYER_CAMERA.SET_HIDDEN_MODEL_NODES"`
|
139
|
+
|
140
|
+
|
141
|
+
</td><td>
|
142
|
+
|
143
|
+
|
144
|
+
</td></tr>
|
145
|
+
<tr><td>
|
146
|
+
|
147
|
+
SET\_MODE
|
148
|
+
|
149
|
+
|
150
|
+
</td><td>
|
151
|
+
|
152
|
+
`"PLAYER_CAMERA.SET_MODE"`
|
153
|
+
|
154
|
+
|
155
|
+
</td><td>
|
156
|
+
|
157
|
+
|
158
|
+
</td></tr>
|
159
|
+
<tr><td>
|
160
|
+
|
161
|
+
SET\_OFFSET
|
162
|
+
|
163
|
+
|
164
|
+
</td><td>
|
165
|
+
|
166
|
+
`"PLAYER_CAMERA.SET_OFFSET"`
|
167
|
+
|
168
|
+
|
169
|
+
</td><td>
|
170
|
+
|
171
|
+
|
172
|
+
</td></tr>
|
173
|
+
<tr><td>
|
174
|
+
|
175
|
+
SET\_TRACKED\_ENTITY
|
176
|
+
|
177
|
+
|
178
|
+
</td><td>
|
179
|
+
|
180
|
+
`"PLAYER_CAMERA.SET_TRACKED_ENTITY"`
|
181
|
+
|
182
|
+
|
183
|
+
</td><td>
|
184
|
+
|
185
|
+
|
186
|
+
</td></tr>
|
187
|
+
<tr><td>
|
188
|
+
|
189
|
+
SET\_TRACKED\_POSITION
|
190
|
+
|
191
|
+
|
192
|
+
</td><td>
|
193
|
+
|
194
|
+
`"PLAYER_CAMERA.SET_TRACKED_POSITION"`
|
195
|
+
|
196
|
+
|
197
|
+
</td><td>
|
198
|
+
|
199
|
+
|
200
|
+
</td></tr>
|
201
|
+
<tr><td>
|
202
|
+
|
203
|
+
SET\_ZOOM
|
204
|
+
|
205
|
+
|
206
|
+
</td><td>
|
207
|
+
|
208
|
+
`"PLAYER_CAMERA.SET_ZOOM"`
|
209
|
+
|
210
|
+
|
211
|
+
</td><td>
|
212
|
+
|
213
|
+
|
214
|
+
</td></tr>
|
215
|
+
</tbody></table>
|
@@ -0,0 +1,59 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [HYTOPIA](./server.hytopia.md) > [PlayerCameraMode](./server.hytopia.playercameramode.md)
|
4
|
+
|
5
|
+
## HYTOPIA.PlayerCameraMode enum
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
export declare enum PlayerCameraMode
|
11
|
+
```
|
12
|
+
|
13
|
+
## Enumeration Members
|
14
|
+
|
15
|
+
<table><thead><tr><th>
|
16
|
+
|
17
|
+
Member
|
18
|
+
|
19
|
+
|
20
|
+
</th><th>
|
21
|
+
|
22
|
+
Value
|
23
|
+
|
24
|
+
|
25
|
+
</th><th>
|
26
|
+
|
27
|
+
Description
|
28
|
+
|
29
|
+
|
30
|
+
</th></tr></thead>
|
31
|
+
<tbody><tr><td>
|
32
|
+
|
33
|
+
FIRST\_PERSON
|
34
|
+
|
35
|
+
|
36
|
+
</td><td>
|
37
|
+
|
38
|
+
`0`
|
39
|
+
|
40
|
+
|
41
|
+
</td><td>
|
42
|
+
|
43
|
+
|
44
|
+
</td></tr>
|
45
|
+
<tr><td>
|
46
|
+
|
47
|
+
THIRD\_PERSON
|
48
|
+
|
49
|
+
|
50
|
+
</td><td>
|
51
|
+
|
52
|
+
`1`
|
53
|
+
|
54
|
+
|
55
|
+
</td><td>
|
56
|
+
|
57
|
+
|
58
|
+
</td></tr>
|
59
|
+
</tbody></table>
|
package/docs/server.md
CHANGED
@@ -192,6 +192,17 @@ Manages the game and associated worlds and systems.
|
|
192
192
|
A player in the game.
|
193
193
|
|
194
194
|
|
195
|
+
</td></tr>
|
196
|
+
<tr><td>
|
197
|
+
|
198
|
+
[PlayerCamera](./server.playercamera.md)
|
199
|
+
|
200
|
+
|
201
|
+
</td><td>
|
202
|
+
|
203
|
+
The camera for a Player.
|
204
|
+
|
205
|
+
|
195
206
|
</td></tr>
|
196
207
|
<tr><td>
|
197
208
|
|
@@ -409,6 +420,26 @@ Event types an Entity instance can emit.
|
|
409
420
|
Event types a GameServer instance can emit.
|
410
421
|
|
411
422
|
|
423
|
+
</td></tr>
|
424
|
+
<tr><td>
|
425
|
+
|
426
|
+
[PlayerCameraEventType](./server.playercameraeventtype.md)
|
427
|
+
|
428
|
+
|
429
|
+
</td><td>
|
430
|
+
|
431
|
+
Event types a PlayerCamera can emit.
|
432
|
+
|
433
|
+
|
434
|
+
</td></tr>
|
435
|
+
<tr><td>
|
436
|
+
|
437
|
+
[PlayerCameraMode](./server.playercameramode.md)
|
438
|
+
|
439
|
+
|
440
|
+
</td><td>
|
441
|
+
|
442
|
+
|
412
443
|
</td></tr>
|
413
444
|
<tr><td>
|
414
445
|
|
@@ -727,6 +758,17 @@ Payloads for events emitted by a GameServer instance.
|
|
727
758
|
</td><td>
|
728
759
|
|
729
760
|
|
761
|
+
</td></tr>
|
762
|
+
<tr><td>
|
763
|
+
|
764
|
+
[PlayerCameraEventPayload](./server.playercameraeventpayload.md)
|
765
|
+
|
766
|
+
|
767
|
+
</td><td>
|
768
|
+
|
769
|
+
Payloads for events a PlayerCamera can emit.
|
770
|
+
|
771
|
+
|
730
772
|
</td></tr>
|
731
773
|
<tr><td>
|
732
774
|
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [Player](./server.player.md) > [camera](./server.player.camera.md)
|
4
|
+
|
5
|
+
## Player.camera property
|
6
|
+
|
7
|
+
The camera for the player.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
readonly camera: PlayerCamera;
|
13
|
+
```
|
package/docs/server.player.md
CHANGED
@@ -43,6 +43,27 @@ Description
|
|
43
43
|
</th></tr></thead>
|
44
44
|
<tbody><tr><td>
|
45
45
|
|
46
|
+
[camera](./server.player.camera.md)
|
47
|
+
|
48
|
+
|
49
|
+
</td><td>
|
50
|
+
|
51
|
+
`readonly`
|
52
|
+
|
53
|
+
|
54
|
+
</td><td>
|
55
|
+
|
56
|
+
[PlayerCamera](./server.playercamera.md)
|
57
|
+
|
58
|
+
|
59
|
+
</td><td>
|
60
|
+
|
61
|
+
The camera for the player.
|
62
|
+
|
63
|
+
|
64
|
+
</td></tr>
|
65
|
+
<tr><td>
|
66
|
+
|
46
67
|
[id](./server.player.id.md)
|
47
68
|
|
48
69
|
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [PlayerCamera](./server.playercamera.md) > [attachedToEntity](./server.playercamera.attachedtoentity.md)
|
4
|
+
|
5
|
+
## PlayerCamera.attachedToEntity property
|
6
|
+
|
7
|
+
The entity the camera is attached to.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
get attachedToEntity(): Entity | undefined;
|
13
|
+
```
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [PlayerCamera](./server.playercamera.md) > [attachedToPosition](./server.playercamera.attachedtoposition.md)
|
4
|
+
|
5
|
+
## PlayerCamera.attachedToPosition property
|
6
|
+
|
7
|
+
The position the camera is attached to.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
get attachedToPosition(): Vector3 | undefined;
|
13
|
+
```
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [PlayerCamera](./server.playercamera.md) > [filmOffset](./server.playercamera.filmoffset.md)
|
4
|
+
|
5
|
+
## PlayerCamera.filmOffset property
|
6
|
+
|
7
|
+
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
|
+
get filmOffset(): number;
|
13
|
+
```
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [PlayerCamera](./server.playercamera.md) > [forwardOffset](./server.playercamera.forwardoffset.md)
|
4
|
+
|
5
|
+
## PlayerCamera.forwardOffset property
|
6
|
+
|
7
|
+
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.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
get forwardOffset(): number;
|
13
|
+
```
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [PlayerCamera](./server.playercamera.md) > [fov](./server.playercamera.fov.md)
|
4
|
+
|
5
|
+
## PlayerCamera.fov property
|
6
|
+
|
7
|
+
The field of view of the camera.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
get fov(): number;
|
13
|
+
```
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [PlayerCamera](./server.playercamera.md) > [hiddenModelNodes](./server.playercamera.hiddenmodelnodes.md)
|
4
|
+
|
5
|
+
## PlayerCamera.hiddenModelNodes property
|
6
|
+
|
7
|
+
The nodes of the model the camera is attached to that will not be rendered for the player. Uses case insensitive substring matching.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
get hiddenModelNodes(): Set<string>;
|
13
|
+
```
|
@@ -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) > [PlayerCamera](./server.playercamera.md) > [lookAtEntity](./server.playercamera.lookatentity.md)
|
4
|
+
|
5
|
+
## PlayerCamera.lookAtEntity() method
|
6
|
+
|
7
|
+
Makes the camera look at an entity. If the camera was previously tracking an entity or position, it will stop tracking.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
lookAtEntity(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 look at.
|
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) > [server](./server.md) > [PlayerCamera](./server.playercamera.md) > [lookAtPosition](./server.playercamera.lookatposition.md)
|
4
|
+
|
5
|
+
## PlayerCamera.lookAtPosition() method
|
6
|
+
|
7
|
+
Makes the camera look at a position. If the camera was previously tracking an entity or position, it will stop tracking.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
lookAtPosition(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 look at.
|
46
|
+
|
47
|
+
|
48
|
+
</td></tr>
|
49
|
+
</tbody></table>
|
50
|
+
**Returns:**
|
51
|
+
|
52
|
+
void
|
53
|
+
|