@hytopia.com/server-protocol 1.3.9 → 1.3.10
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.
- package/package.json +1 -1
- package/schemas/Camera.ts +4 -0
package/package.json
CHANGED
package/schemas/Camera.ts
CHANGED
|
@@ -6,11 +6,13 @@ export type CameraSchema = {
|
|
|
6
6
|
m?: number // camera mode - 0: first person, 1: third person
|
|
7
7
|
e?: number // entity id to fix camera to
|
|
8
8
|
et?: number // entity id to track
|
|
9
|
+
el?: number // entity id to look at
|
|
9
10
|
fo?: number // film offset, + value shifts right, - shifts left
|
|
10
11
|
ffo?: number // first person forward offset, moves camera in (+) or out (-) relative to camera position
|
|
11
12
|
fv?: number // field of view
|
|
12
13
|
p?: VectorSchema // position to fix camera at
|
|
13
14
|
pt?: VectorSchema // position to track
|
|
15
|
+
pl?: VectorSchema // position to look at
|
|
14
16
|
h?: string[] // player model parts to hide by partial case insensitive match of gltf node names
|
|
15
17
|
o?: VectorSchema // offset - positional relative to target
|
|
16
18
|
z?: number // zoom
|
|
@@ -22,11 +24,13 @@ export const cameraSchema: JSONSchemaType<CameraSchema> = {
|
|
|
22
24
|
m: { type: 'number', nullable: true },
|
|
23
25
|
e: { type: 'number', nullable: true },
|
|
24
26
|
et: { type: 'number', nullable: true },
|
|
27
|
+
el: { type: 'number', nullable: true },
|
|
25
28
|
fo: { type: 'number', nullable: true },
|
|
26
29
|
ffo: { type: 'number', nullable: true },
|
|
27
30
|
fv: { type: 'number', nullable: true },
|
|
28
31
|
p: { ...vectorSchema, nullable: true },
|
|
29
32
|
pt: { ...vectorSchema, nullable: true },
|
|
33
|
+
pl: { ...vectorSchema, nullable: true },
|
|
30
34
|
h: { type: 'array', items: { type: 'string' }, nullable: true },
|
|
31
35
|
o: { ...vectorSchema, nullable: true },
|
|
32
36
|
z: { type: 'number', nullable: true },
|