@hytopia.com/server-protocol 1.4.52 → 1.4.54
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 +6 -0
package/package.json
CHANGED
package/schemas/Camera.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { vectorSchema } from './Vector';
|
|
|
3
3
|
import type { VectorSchema } from './Vector';
|
|
4
4
|
|
|
5
5
|
export type CameraSchema = {
|
|
6
|
+
cb?: boolean // collides with blocks
|
|
6
7
|
m?: number // camera mode - 0: first person, 1: third person
|
|
7
8
|
e?: number // entity id to attach camera to
|
|
8
9
|
et?: number // entity id to track
|
|
@@ -10,6 +11,8 @@ export type CameraSchema = {
|
|
|
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
|
h?: string[] // player model nodes to hide by partial case insensitive match of gltf node names
|
|
14
|
+
mp?: boolean // model pitches with camera
|
|
15
|
+
my?: boolean // model yaws with camera
|
|
13
16
|
o?: VectorSchema // offset - positional relative to target
|
|
14
17
|
p?: VectorSchema // position to attach camera to
|
|
15
18
|
pt?: VectorSchema // position to track
|
|
@@ -22,6 +25,7 @@ export type CameraSchema = {
|
|
|
22
25
|
export const cameraSchema: JSONSchemaType<CameraSchema> = {
|
|
23
26
|
type: 'object',
|
|
24
27
|
properties: {
|
|
28
|
+
cb: { type: 'boolean', nullable: true },
|
|
25
29
|
m: { type: 'number', nullable: true },
|
|
26
30
|
e: { type: 'number', nullable: true },
|
|
27
31
|
et: { type: 'number', nullable: true },
|
|
@@ -29,6 +33,8 @@ export const cameraSchema: JSONSchemaType<CameraSchema> = {
|
|
|
29
33
|
ffo: { type: 'number', nullable: true },
|
|
30
34
|
fv: { type: 'number', nullable: true },
|
|
31
35
|
h: { type: 'array', items: { type: 'string' }, nullable: true },
|
|
36
|
+
mp: { type: 'boolean', nullable: true },
|
|
37
|
+
my: { type: 'boolean', nullable: true },
|
|
32
38
|
o: { ...vectorSchema, nullable: true },
|
|
33
39
|
p: { ...vectorSchema, nullable: true },
|
|
34
40
|
pt: { ...vectorSchema, nullable: true },
|