@hytopia.com/server-protocol 1.0.65 → 1.0.66

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hytopia.com/server-protocol",
3
- "version": "1.0.65",
3
+ "version": "1.0.66",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -15,6 +15,7 @@ export type RigidBodySchema = {
15
15
  av?: VectorSchema; // angular velocity
16
16
  b?: number; // body type
17
17
  c?: ColliderSchema[]; // collider desc
18
+ cm?: VectorSchema; // center of mass
18
19
  d?: number; // dominance group
19
20
  ce?: boolean; // ccd enabled
20
21
  en?: boolean; // enabled
@@ -24,6 +25,8 @@ export type RigidBodySchema = {
24
25
  g?: number; // gravity scaling
25
26
  ld?: number; // linear damping
26
27
  lv?: VectorSchema; // linear velocity
28
+ pf?: QuaternionSchema; // principal angular inertia local frame
29
+ pi?: VectorSchema; // principal angular inertia
27
30
  r?: QuaternionSchema; // rotation
28
31
  rm?: boolean; // removed
29
32
  sl?: boolean; // sleeping
@@ -40,6 +43,7 @@ export const rigidBodySchema: JSONSchemaType<RigidBodySchema> = {
40
43
  av: { ...vectorSchema, nullable: true },
41
44
  b: { type: 'number', nullable: true },
42
45
  c: { type: 'array', items: colliderSchema, nullable: true },
46
+ cm: { ...vectorSchema, nullable: true },
43
47
  d: { type: 'number', nullable: true },
44
48
  ce: { type: 'boolean', nullable: true },
45
49
  en: { type: 'boolean', nullable: true },
@@ -49,6 +53,8 @@ export const rigidBodySchema: JSONSchemaType<RigidBodySchema> = {
49
53
  g: { type: 'number', nullable: true },
50
54
  ld: { type: 'number', nullable: true },
51
55
  lv: { ...vectorSchema, nullable: true },
56
+ pf: { ...quaternionSchema, nullable: true },
57
+ pi: { ...vectorSchema, nullable: true },
52
58
  r: { ...quaternionSchema, nullable: true },
53
59
  rm: { type: 'boolean', nullable: true },
54
60
  sl: { type: 'boolean', nullable: true },