hytopia 0.6.3 → 0.6.6
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/bun-server.mjs +161 -161
- package/docs/server.defaultplayerentitycontroller.isactivelymoving.md +13 -0
- package/docs/server.defaultplayerentitycontroller.md +21 -0
- package/docs/server.rigidbody.directionfromrotation.md +1 -1
- package/docs/server.rigidbody.md +1 -1
- package/docs/server.simulation.enabledebugrendering.md +17 -1
- package/docs/server.simulation.md +1 -1
- package/node-server.mjs +161 -161
- package/package.json +1 -1
- package/server.api.json +50 -3
- package/server.d.ts +10 -2
package/package.json
CHANGED
package/server.api.json
CHANGED
@@ -11218,6 +11218,36 @@
|
|
11218
11218
|
"isProtected": false,
|
11219
11219
|
"isAbstract": false
|
11220
11220
|
},
|
11221
|
+
{
|
11222
|
+
"kind": "Property",
|
11223
|
+
"canonicalReference": "server!DefaultPlayerEntityController#isActivelyMoving:member",
|
11224
|
+
"docComment": "/**\n * Whether the entity is moving from player inputs.\n */\n",
|
11225
|
+
"excerptTokens": [
|
11226
|
+
{
|
11227
|
+
"kind": "Content",
|
11228
|
+
"text": "get isActivelyMoving(): "
|
11229
|
+
},
|
11230
|
+
{
|
11231
|
+
"kind": "Content",
|
11232
|
+
"text": "boolean"
|
11233
|
+
},
|
11234
|
+
{
|
11235
|
+
"kind": "Content",
|
11236
|
+
"text": ";"
|
11237
|
+
}
|
11238
|
+
],
|
11239
|
+
"isReadonly": true,
|
11240
|
+
"isOptional": false,
|
11241
|
+
"releaseTag": "Public",
|
11242
|
+
"name": "isActivelyMoving",
|
11243
|
+
"propertyTypeTokenRange": {
|
11244
|
+
"startIndex": 1,
|
11245
|
+
"endIndex": 2
|
11246
|
+
},
|
11247
|
+
"isStatic": false,
|
11248
|
+
"isProtected": false,
|
11249
|
+
"isAbstract": false
|
11250
|
+
},
|
11221
11251
|
{
|
11222
11252
|
"kind": "Property",
|
11223
11253
|
"canonicalReference": "server!DefaultPlayerEntityController#isGrounded:member",
|
@@ -34170,7 +34200,7 @@
|
|
34170
34200
|
{
|
34171
34201
|
"kind": "Property",
|
34172
34202
|
"canonicalReference": "server!RigidBody#directionFromRotation:member",
|
34173
|
-
"docComment": "/**\n * The direction from the rotation of the rigid body
|
34203
|
+
"docComment": "/**\n * The direction from the rotation of the rigid body. (-Z identity)\n */\n",
|
34174
34204
|
"excerptTokens": [
|
34175
34205
|
{
|
34176
34206
|
"kind": "Content",
|
@@ -39254,6 +39284,15 @@
|
|
39254
39284
|
"kind": "Content",
|
39255
39285
|
"text": "boolean"
|
39256
39286
|
},
|
39287
|
+
{
|
39288
|
+
"kind": "Content",
|
39289
|
+
"text": ", filterFlags?: "
|
39290
|
+
},
|
39291
|
+
{
|
39292
|
+
"kind": "Reference",
|
39293
|
+
"text": "RAPIER.QueryFilterFlags",
|
39294
|
+
"canonicalReference": "@dimforge/rapier3d-simd-compat!QueryFilterFlags:enum"
|
39295
|
+
},
|
39257
39296
|
{
|
39258
39297
|
"kind": "Content",
|
39259
39298
|
"text": "): "
|
@@ -39269,8 +39308,8 @@
|
|
39269
39308
|
],
|
39270
39309
|
"isStatic": false,
|
39271
39310
|
"returnTypeTokenRange": {
|
39272
|
-
"startIndex":
|
39273
|
-
"endIndex":
|
39311
|
+
"startIndex": 5,
|
39312
|
+
"endIndex": 6
|
39274
39313
|
},
|
39275
39314
|
"releaseTag": "Public",
|
39276
39315
|
"isProtected": false,
|
@@ -39283,6 +39322,14 @@
|
|
39283
39322
|
"endIndex": 2
|
39284
39323
|
},
|
39285
39324
|
"isOptional": false
|
39325
|
+
},
|
39326
|
+
{
|
39327
|
+
"parameterName": "filterFlags",
|
39328
|
+
"parameterTypeTokenRange": {
|
39329
|
+
"startIndex": 3,
|
39330
|
+
"endIndex": 4
|
39331
|
+
},
|
39332
|
+
"isOptional": true
|
39286
39333
|
}
|
39287
39334
|
],
|
39288
39335
|
"isOptional": false,
|
package/server.d.ts
CHANGED
@@ -1477,6 +1477,7 @@ export declare class DefaultPlayerEntityController extends BaseEntityController
|
|
1477
1477
|
private static readonly WALL_COLLIDER_HEIGHT_SCALE;
|
1478
1478
|
private static readonly WALL_COLLIDER_RADIUS_SCALE;
|
1479
1479
|
private static readonly MOVEMENT_ROTATIONS;
|
1480
|
+
private static readonly EXTERNAL_IMPULSE_DECAY_RATE;
|
1480
1481
|
private static readonly SWIM_UPWARD_COOLDOWN_MS;
|
1481
1482
|
private static readonly SWIMMING_DRAG_FACTOR;
|
1482
1483
|
private static readonly WATER_ENTRY_SINKING_FACTOR;
|
@@ -1556,10 +1557,16 @@ export declare class DefaultPlayerEntityController extends BaseEntityController
|
|
1556
1557
|
|
1557
1558
|
|
1558
1559
|
|
1560
|
+
|
1561
|
+
|
1562
|
+
|
1563
|
+
|
1559
1564
|
/**
|
1560
1565
|
* @param options - Options for the controller.
|
1561
1566
|
*/
|
1562
1567
|
constructor(options?: DefaultPlayerEntityControllerOptions);
|
1568
|
+
/** Whether the entity is moving from player inputs. */
|
1569
|
+
get isActivelyMoving(): boolean;
|
1563
1570
|
/** Whether the entity is grounded. */
|
1564
1571
|
get isGrounded(): boolean;
|
1565
1572
|
/** Whether the entity is on a platform, a platform is any entity with a kinematic rigid body. */
|
@@ -4395,7 +4402,7 @@ export declare class RigidBody extends EventRouter {
|
|
4395
4402
|
get colliders(): Set<Collider>;
|
4396
4403
|
/** The dominance group of the rigid body. */
|
4397
4404
|
get dominanceGroup(): number;
|
4398
|
-
/** The direction from the rotation of the rigid body. */
|
4405
|
+
/** The direction from the rotation of the rigid body. (-Z identity) */
|
4399
4406
|
get directionFromRotation(): Vector3Like;
|
4400
4407
|
/** The effective angular inertia of the rigid body. */
|
4401
4408
|
get effectiveAngularInertia(): SpdMatrix3 | undefined;
|
@@ -5053,6 +5060,7 @@ export declare class Simulation extends EventRouter {
|
|
5053
5060
|
|
5054
5061
|
|
5055
5062
|
|
5063
|
+
|
5056
5064
|
/** Whether the simulation has debug raycasting enabled */
|
5057
5065
|
get isDebugRaycastingEnabled(): boolean;
|
5058
5066
|
/** Whether the simulation has debug rendering enabled. */
|
@@ -5093,7 +5101,7 @@ export declare class Simulation extends EventRouter {
|
|
5093
5101
|
* In large worlds enabling this can cause noticable lag and RTT spikes.
|
5094
5102
|
* @param enabled - Whether to enable debug rendering.
|
5095
5103
|
*/
|
5096
|
-
enableDebugRendering(enabled: boolean): void;
|
5104
|
+
enableDebugRendering(enabled: boolean, filterFlags?: RAPIER.QueryFilterFlags): void;
|
5097
5105
|
/**
|
5098
5106
|
* Gets the contact manifolds for a pair of colliders.
|
5099
5107
|
*
|