hytopia 0.12.1 → 0.12.2

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.
@@ -9,7 +9,7 @@ Creates a collider options object from a modelUri with best approximate shape an
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- static optionsFromModelUri(modelUri: string, scale?: Vector3Like, preferredShape?: ColliderShape): ColliderOptions;
12
+ static optionsFromModelUri(modelUri: string, scale?: Vector3Like | number, preferredShape?: ColliderShape): ColliderOptions;
13
13
  ```
14
14
 
15
15
  ## Parameters
@@ -53,7 +53,7 @@ scale
53
53
 
54
54
  </td><td>
55
55
 
56
- [Vector3Like](./server.vector3like.md)
56
+ [Vector3Like](./server.vector3like.md) \| number
57
57
 
58
58
 
59
59
  </td><td>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hytopia",
3
- "version": "0.12.1",
3
+ "version": "0.12.2",
4
4
  "description": "The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.",
5
5
  "type": "module",
6
6
  "main": "./server.mjs",
package/server.api.json CHANGED
@@ -8935,6 +8935,10 @@
8935
8935
  "text": "Vector3Like",
8936
8936
  "canonicalReference": "server!Vector3Like:interface"
8937
8937
  },
8938
+ {
8939
+ "kind": "Content",
8940
+ "text": " | number"
8941
+ },
8938
8942
  {
8939
8943
  "kind": "Content",
8940
8944
  "text": ", preferredShape?: "
@@ -8960,8 +8964,8 @@
8960
8964
  ],
8961
8965
  "isStatic": true,
8962
8966
  "returnTypeTokenRange": {
8963
- "startIndex": 7,
8964
- "endIndex": 8
8967
+ "startIndex": 8,
8968
+ "endIndex": 9
8965
8969
  },
8966
8970
  "releaseTag": "Public",
8967
8971
  "isProtected": false,
@@ -8979,15 +8983,15 @@
8979
8983
  "parameterName": "scale",
8980
8984
  "parameterTypeTokenRange": {
8981
8985
  "startIndex": 3,
8982
- "endIndex": 4
8986
+ "endIndex": 5
8983
8987
  },
8984
8988
  "isOptional": true
8985
8989
  },
8986
8990
  {
8987
8991
  "parameterName": "preferredShape",
8988
8992
  "parameterTypeTokenRange": {
8989
- "startIndex": 5,
8990
- "endIndex": 6
8993
+ "startIndex": 6,
8994
+ "endIndex": 7
8991
8995
  },
8992
8996
  "isOptional": true
8993
8997
  }
package/server.d.ts CHANGED
@@ -1191,7 +1191,7 @@ export declare class Collider extends EventRouter {
1191
1191
  * @param preferredShape - The preferred shape to use for the collider.
1192
1192
  * @returns The collider options object.
1193
1193
  */
1194
- static optionsFromModelUri(modelUri: string, scale?: Vector3Like, preferredShape?: ColliderShape): ColliderOptions;
1194
+ static optionsFromModelUri(modelUri: string, scale?: Vector3Like | number, preferredShape?: ColliderShape): ColliderOptions;
1195
1195
  /** The bounciness of the collider. */
1196
1196
  get bounciness(): number;
1197
1197
  /** The bounciness combine rule of the collider. */