hytopia 0.1.31 → 0.1.32
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -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) > [HYTOPIA](./server.hytopia.md) > [PlayerCamera](./server.hytopia.playercamera.md) > [setForwardOffset](./server.hytopia.playercamera.setforwardoffset.md)
|
4
|
+
|
5
|
+
## HYTOPIA.PlayerCamera.setForwardOffset() method
|
6
|
+
|
7
|
+
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.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
setForwardOffset(forwardOffset: 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
|
+
forwardOffset
|
36
|
+
|
37
|
+
|
38
|
+
</td><td>
|
39
|
+
|
40
|
+
number
|
41
|
+
|
42
|
+
|
43
|
+
</td><td>
|
44
|
+
|
45
|
+
The forward offset to set.
|
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) > [HYTOPIA](./server.hytopia.md) > [PlayerCamera](./server.hytopia.playercamera.md) > [setFov](./server.hytopia.playercamera.setfov.md)
|
4
|
+
|
5
|
+
## HYTOPIA.PlayerCamera.setFov() method
|
6
|
+
|
7
|
+
Sets the field of view of the camera.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
setFov(fov: 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
|
+
fov
|
36
|
+
|
37
|
+
|
38
|
+
</td><td>
|
39
|
+
|
40
|
+
number
|
41
|
+
|
42
|
+
|
43
|
+
</td><td>
|
44
|
+
|
45
|
+
The field of view to set.
|
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) > [HYTOPIA](./server.hytopia.md) > [PlayerCamera](./server.hytopia.playercamera.md) > [setHiddenModelNodes](./server.hytopia.playercamera.sethiddenmodelnodes.md)
|
4
|
+
|
5
|
+
## HYTOPIA.PlayerCamera.setHiddenModelNodes() method
|
6
|
+
|
7
|
+
Sets 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
|
+
setHiddenModelNodes(hiddenModelNodes: string[]): 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
|
+
hiddenModelNodes
|
36
|
+
|
37
|
+
|
38
|
+
</td><td>
|
39
|
+
|
40
|
+
string\[\]
|
41
|
+
|
42
|
+
|
43
|
+
</td><td>
|
44
|
+
|
45
|
+
Determines nodes to hide that match these case insensitive substrings.
|
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) > [HYTOPIA](./server.hytopia.md) > [PlayerCamera](./server.hytopia.playercamera.md) > [setMode](./server.hytopia.playercamera.setmode.md)
|
4
|
+
|
5
|
+
## HYTOPIA.PlayerCamera.setMode() method
|
6
|
+
|
7
|
+
Sets the mode of the camera.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
setMode(mode: PlayerCameraMode): 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
|
+
mode
|
36
|
+
|
37
|
+
|
38
|
+
</td><td>
|
39
|
+
|
40
|
+
[PlayerCameraMode](./server.playercameramode.md)
|
41
|
+
|
42
|
+
|
43
|
+
</td><td>
|
44
|
+
|
45
|
+
The mode to set.
|
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) > [HYTOPIA](./server.hytopia.md) > [PlayerCamera](./server.hytopia.playercamera.md) > [setOffset](./server.hytopia.playercamera.setoffset.md)
|
4
|
+
|
5
|
+
## HYTOPIA.PlayerCamera.setOffset() method
|
6
|
+
|
7
|
+
Sets the relative offset of the camera from the entity or position it is attached to.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
setOffset(offset: 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
|
+
offset
|
36
|
+
|
37
|
+
|
38
|
+
</td><td>
|
39
|
+
|
40
|
+
[Vector3](./server.vector3.md)
|
41
|
+
|
42
|
+
|
43
|
+
</td><td>
|
44
|
+
|
45
|
+
The offset to set.
|
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) > [HYTOPIA](./server.hytopia.md) > [PlayerCamera](./server.hytopia.playercamera.md) > [setTrackedEntity](./server.hytopia.playercamera.settrackedentity.md)
|
4
|
+
|
5
|
+
## HYTOPIA.PlayerCamera.setTrackedEntity() method
|
6
|
+
|
7
|
+
Sets the entity the camera will constantly look at, even if the camera attached or tracked entity moves.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
setTrackedEntity(entity: Entity | undefined): 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) \| undefined
|
41
|
+
|
42
|
+
|
43
|
+
</td><td>
|
44
|
+
|
45
|
+
The entity to track or undefined to stop tracking.
|
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) > [HYTOPIA](./server.hytopia.md) > [PlayerCamera](./server.hytopia.playercamera.md) > [setTrackedPosition](./server.hytopia.playercamera.settrackedposition.md)
|
4
|
+
|
5
|
+
## HYTOPIA.PlayerCamera.setTrackedPosition() method
|
6
|
+
|
7
|
+
Sets the position the camera will constantly look at, even if the camera attached entity moves.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
setTrackedPosition(position: Vector3 | undefined): 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) \| undefined
|
41
|
+
|
42
|
+
|
43
|
+
</td><td>
|
44
|
+
|
45
|
+
The position to track or undefined to stop tracking.
|
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) > [HYTOPIA](./server.hytopia.md) > [PlayerCamera](./server.hytopia.playercamera.md) > [setZoom](./server.hytopia.playercamera.setzoom.md)
|
4
|
+
|
5
|
+
## HYTOPIA.PlayerCamera.setZoom() method
|
6
|
+
|
7
|
+
Sets the zoom of the camera.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
setZoom(zoom: 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
|
+
zoom
|
36
|
+
|
37
|
+
|
38
|
+
</td><td>
|
39
|
+
|
40
|
+
number
|
41
|
+
|
42
|
+
|
43
|
+
</td><td>
|
44
|
+
|
45
|
+
The zoom to set, 0 to infinity.
|
46
|
+
|
47
|
+
|
48
|
+
</td></tr>
|
49
|
+
</tbody></table>
|
50
|
+
**Returns:**
|
51
|
+
|
52
|
+
void
|
53
|
+
|
@@ -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) > [HYTOPIA](./server.hytopia.md) > [PlayerCamera](./server.hytopia.playercamera.md) > [trackedEntity](./server.hytopia.playercamera.trackedentity.md)
|
4
|
+
|
5
|
+
## HYTOPIA.PlayerCamera.trackedEntity property
|
6
|
+
|
7
|
+
The entity the camera will constantly look at, even if the camera attached or tracked entity moves.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
get trackedEntity(): 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) > [HYTOPIA](./server.hytopia.md) > [PlayerCamera](./server.hytopia.playercamera.md) > [trackedPosition](./server.hytopia.playercamera.trackedposition.md)
|
4
|
+
|
5
|
+
## HYTOPIA.PlayerCamera.trackedPosition property
|
6
|
+
|
7
|
+
The position the camera will constantly look at, even if the camera attached entity moves.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
get trackedPosition(): 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) > [HYTOPIA](./server.hytopia.md) > [PlayerCamera](./server.hytopia.playercamera.md) > [zoom](./server.hytopia.playercamera.zoom.md)
|
4
|
+
|
5
|
+
## HYTOPIA.PlayerCamera.zoom property
|
6
|
+
|
7
|
+
The zoom of the camera.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
get zoom(): number;
|
13
|
+
```
|
@@ -0,0 +1,11 @@
|
|
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) > [PlayerCameraEventPayload](./server.hytopia.playercameraeventpayload.md) > [LookAtEntity](./server.hytopia.playercameraeventpayload.lookatentity.md) > [entity](./server.hytopia.playercameraeventpayload.lookatentity.entity.md)
|
4
|
+
|
5
|
+
## HYTOPIA.PlayerCameraEventPayload.LookAtEntity.entity property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
entity: Entity;
|
11
|
+
```
|
@@ -0,0 +1,70 @@
|
|
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) > [PlayerCameraEventPayload](./server.hytopia.playercameraeventpayload.md) > [LookAtEntity](./server.hytopia.playercameraeventpayload.lookatentity.md)
|
4
|
+
|
5
|
+
## HYTOPIA.PlayerCameraEventPayload.LookAtEntity interface
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
interface LookAtEntity
|
11
|
+
```
|
12
|
+
|
13
|
+
## Properties
|
14
|
+
|
15
|
+
<table><thead><tr><th>
|
16
|
+
|
17
|
+
Property
|
18
|
+
|
19
|
+
|
20
|
+
</th><th>
|
21
|
+
|
22
|
+
Modifiers
|
23
|
+
|
24
|
+
|
25
|
+
</th><th>
|
26
|
+
|
27
|
+
Type
|
28
|
+
|
29
|
+
|
30
|
+
</th><th>
|
31
|
+
|
32
|
+
Description
|
33
|
+
|
34
|
+
|
35
|
+
</th></tr></thead>
|
36
|
+
<tbody><tr><td>
|
37
|
+
|
38
|
+
[entity](./server.hytopia.playercameraeventpayload.lookatentity.entity.md)
|
39
|
+
|
40
|
+
|
41
|
+
</td><td>
|
42
|
+
|
43
|
+
|
44
|
+
</td><td>
|
45
|
+
|
46
|
+
[Entity](./server.entity.md)
|
47
|
+
|
48
|
+
|
49
|
+
</td><td>
|
50
|
+
|
51
|
+
|
52
|
+
</td></tr>
|
53
|
+
<tr><td>
|
54
|
+
|
55
|
+
[playerCamera](./server.hytopia.playercameraeventpayload.lookatentity.playercamera.md)
|
56
|
+
|
57
|
+
|
58
|
+
</td><td>
|
59
|
+
|
60
|
+
|
61
|
+
</td><td>
|
62
|
+
|
63
|
+
[PlayerCamera](./server.playercamera.md)
|
64
|
+
|
65
|
+
|
66
|
+
</td><td>
|
67
|
+
|
68
|
+
|
69
|
+
</td></tr>
|
70
|
+
</tbody></table>
|
@@ -0,0 +1,11 @@
|
|
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) > [PlayerCameraEventPayload](./server.hytopia.playercameraeventpayload.md) > [LookAtEntity](./server.hytopia.playercameraeventpayload.lookatentity.md) > [playerCamera](./server.hytopia.playercameraeventpayload.lookatentity.playercamera.md)
|
4
|
+
|
5
|
+
## HYTOPIA.PlayerCameraEventPayload.LookAtEntity.playerCamera property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
playerCamera: PlayerCamera;
|
11
|
+
```
|
@@ -0,0 +1,70 @@
|
|
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) > [PlayerCameraEventPayload](./server.hytopia.playercameraeventpayload.md) > [LookAtPosition](./server.hytopia.playercameraeventpayload.lookatposition.md)
|
4
|
+
|
5
|
+
## HYTOPIA.PlayerCameraEventPayload.LookAtPosition interface
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
interface LookAtPosition
|
11
|
+
```
|
12
|
+
|
13
|
+
## Properties
|
14
|
+
|
15
|
+
<table><thead><tr><th>
|
16
|
+
|
17
|
+
Property
|
18
|
+
|
19
|
+
|
20
|
+
</th><th>
|
21
|
+
|
22
|
+
Modifiers
|
23
|
+
|
24
|
+
|
25
|
+
</th><th>
|
26
|
+
|
27
|
+
Type
|
28
|
+
|
29
|
+
|
30
|
+
</th><th>
|
31
|
+
|
32
|
+
Description
|
33
|
+
|
34
|
+
|
35
|
+
</th></tr></thead>
|
36
|
+
<tbody><tr><td>
|
37
|
+
|
38
|
+
[playerCamera](./server.hytopia.playercameraeventpayload.lookatposition.playercamera.md)
|
39
|
+
|
40
|
+
|
41
|
+
</td><td>
|
42
|
+
|
43
|
+
|
44
|
+
</td><td>
|
45
|
+
|
46
|
+
[PlayerCamera](./server.playercamera.md)
|
47
|
+
|
48
|
+
|
49
|
+
</td><td>
|
50
|
+
|
51
|
+
|
52
|
+
</td></tr>
|
53
|
+
<tr><td>
|
54
|
+
|
55
|
+
[position](./server.hytopia.playercameraeventpayload.lookatposition.position.md)
|
56
|
+
|
57
|
+
|
58
|
+
</td><td>
|
59
|
+
|
60
|
+
|
61
|
+
</td><td>
|
62
|
+
|
63
|
+
[Vector3](./server.vector3.md)
|
64
|
+
|
65
|
+
|
66
|
+
</td><td>
|
67
|
+
|
68
|
+
|
69
|
+
</td></tr>
|
70
|
+
</tbody></table>
|
@@ -0,0 +1,11 @@
|
|
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) > [PlayerCameraEventPayload](./server.hytopia.playercameraeventpayload.md) > [LookAtPosition](./server.hytopia.playercameraeventpayload.lookatposition.md) > [playerCamera](./server.hytopia.playercameraeventpayload.lookatposition.playercamera.md)
|
4
|
+
|
5
|
+
## HYTOPIA.PlayerCameraEventPayload.LookAtPosition.playerCamera property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
playerCamera: PlayerCamera;
|
11
|
+
```
|
@@ -0,0 +1,11 @@
|
|
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) > [PlayerCameraEventPayload](./server.hytopia.playercameraeventpayload.md) > [LookAtPosition](./server.hytopia.playercameraeventpayload.lookatposition.md) > [position](./server.hytopia.playercameraeventpayload.lookatposition.position.md)
|
4
|
+
|
5
|
+
## HYTOPIA.PlayerCameraEventPayload.LookAtPosition.position property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
position: Vector3;
|
11
|
+
```
|