hytopia 0.12.1 → 0.12.3
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/docs/server.collider.optionsfrommodeluri.md +2 -2
- package/package.json +1 -1
- package/server.api.json +9 -5
- package/server.d.ts +1 -2
- package/server.mjs +145 -145
|
@@ -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
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":
|
|
8964
|
-
"endIndex":
|
|
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":
|
|
8986
|
+
"endIndex": 5
|
|
8983
8987
|
},
|
|
8984
8988
|
"isOptional": true
|
|
8985
8989
|
},
|
|
8986
8990
|
{
|
|
8987
8991
|
"parameterName": "preferredShape",
|
|
8988
8992
|
"parameterTypeTokenRange": {
|
|
8989
|
-
"startIndex":
|
|
8990
|
-
"endIndex":
|
|
8993
|
+
"startIndex": 6,
|
|
8994
|
+
"endIndex": 7
|
|
8991
8995
|
},
|
|
8992
8996
|
"isOptional": true
|
|
8993
8997
|
}
|
package/server.d.ts
CHANGED
|
@@ -10,7 +10,6 @@ import { SdpMatrix3 } from '@dimforge/rapier3d-simd-compat';
|
|
|
10
10
|
import * as Sentry from '@sentry/node';
|
|
11
11
|
import type { Socket } from 'net';
|
|
12
12
|
import { WebSocket as WebSocket_2 } from 'ws';
|
|
13
|
-
import type { WebTransportSessionImpl } from '@fails-components/webtransport/dist/lib/types';
|
|
14
13
|
|
|
15
14
|
/**
|
|
16
15
|
* Manages the assets library and synchronization of assets
|
|
@@ -1191,7 +1190,7 @@ export declare class Collider extends EventRouter {
|
|
|
1191
1190
|
* @param preferredShape - The preferred shape to use for the collider.
|
|
1192
1191
|
* @returns The collider options object.
|
|
1193
1192
|
*/
|
|
1194
|
-
static optionsFromModelUri(modelUri: string, scale?: Vector3Like, preferredShape?: ColliderShape): ColliderOptions;
|
|
1193
|
+
static optionsFromModelUri(modelUri: string, scale?: Vector3Like | number, preferredShape?: ColliderShape): ColliderOptions;
|
|
1195
1194
|
/** The bounciness of the collider. */
|
|
1196
1195
|
get bounciness(): number;
|
|
1197
1196
|
/** The bounciness combine rule of the collider. */
|