@hytopia.com/server-protocol 1.2.3 → 1.2.4

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.2.3",
3
+ "version": "1.2.4",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -6,6 +6,7 @@ export type PhysicsDebugRaycastSchema = {
6
6
  o: VectorSchema; // rapier raycast origin
7
7
  d: VectorSchema; // rapier raycast direction
8
8
  l: number; // rapier raycast length
9
+ h: boolean; // rapier raycast hit
9
10
  }
10
11
 
11
12
  export const physicsDebugRaycastSchema: JSONSchemaType<PhysicsDebugRaycastSchema> = {
@@ -14,7 +15,8 @@ export const physicsDebugRaycastSchema: JSONSchemaType<PhysicsDebugRaycastSchema
14
15
  o: { ...vectorSchema },
15
16
  d: { ...vectorSchema },
16
17
  l: { type: 'number' },
18
+ h: { type: 'boolean' },
17
19
  },
18
- required: [ 'o', 'd', 'l' ],
20
+ required: [ 'o', 'd', 'l', 'h' ],
19
21
  additionalProperties: false,
20
22
  }