hytopia 0.5.24 → 0.6.1
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 +126 -126
- package/docs/server.defaultplayerentitycontroller.applydirectionalmovementrotations.md +13 -0
- package/docs/server.defaultplayerentitycontroller.jumplandheavyoneshotanimations.md +13 -0
- package/docs/server.defaultplayerentitycontroller.jumplandlightoneshotanimations.md +13 -0
- package/docs/server.defaultplayerentitycontroller.md +77 -1
- package/docs/server.defaultplayerentitycontroller.swimidleloopedanimations.md +13 -0
- package/docs/server.defaultplayerentitycontroller.swimloopedanimations.md +1 -1
- package/docs/server.defaultplayerentitycontrolleroptions.applydirectionalmovementrotations.md +13 -0
- package/docs/server.defaultplayerentitycontrolleroptions.jumplandheavyoneshotanimations.md +13 -0
- package/docs/server.defaultplayerentitycontrolleroptions.jumplandlightoneshotanimations.md +13 -0
- package/docs/server.defaultplayerentitycontrolleroptions.md +77 -1
- package/docs/server.defaultplayerentitycontrolleroptions.swimidleloopedanimations.md +13 -0
- package/docs/server.defaultplayerentitycontrolleroptions.swimloopedanimations.md +1 -1
- package/docs/server.entity.md +43 -1
- package/docs/server.entity.modelscale.md +1 -1
- package/docs/server.entity.stopallmodelanimations.md +53 -0
- package/docs/server.entity.stopallmodelloopedanimations.md +53 -0
- package/docs/server.entity.stopallmodeloneshotanimations.md +53 -0
- package/node-server.mjs +144 -144
- package/package.json +1 -1
- package/server.api.json +375 -3
- package/server.d.ts +58 -3
package/package.json
CHANGED
package/server.api.json
CHANGED
@@ -10893,6 +10893,36 @@
|
|
10893
10893
|
}
|
10894
10894
|
]
|
10895
10895
|
},
|
10896
|
+
{
|
10897
|
+
"kind": "Property",
|
10898
|
+
"canonicalReference": "server!DefaultPlayerEntityController#applyDirectionalMovementRotations:member",
|
10899
|
+
"docComment": "/**\n * Whether to apply directional rotations to the entity while moving, defaults to true.\n */\n",
|
10900
|
+
"excerptTokens": [
|
10901
|
+
{
|
10902
|
+
"kind": "Content",
|
10903
|
+
"text": "applyDirectionalMovementRotations: "
|
10904
|
+
},
|
10905
|
+
{
|
10906
|
+
"kind": "Content",
|
10907
|
+
"text": "boolean"
|
10908
|
+
},
|
10909
|
+
{
|
10910
|
+
"kind": "Content",
|
10911
|
+
"text": ";"
|
10912
|
+
}
|
10913
|
+
],
|
10914
|
+
"isReadonly": false,
|
10915
|
+
"isOptional": false,
|
10916
|
+
"releaseTag": "Public",
|
10917
|
+
"name": "applyDirectionalMovementRotations",
|
10918
|
+
"propertyTypeTokenRange": {
|
10919
|
+
"startIndex": 1,
|
10920
|
+
"endIndex": 2
|
10921
|
+
},
|
10922
|
+
"isStatic": false,
|
10923
|
+
"isProtected": false,
|
10924
|
+
"isAbstract": false
|
10925
|
+
},
|
10896
10926
|
{
|
10897
10927
|
"kind": "Method",
|
10898
10928
|
"canonicalReference": "server!DefaultPlayerEntityController#attach:member(1)",
|
@@ -11278,6 +11308,66 @@
|
|
11278
11308
|
"isProtected": false,
|
11279
11309
|
"isAbstract": false
|
11280
11310
|
},
|
11311
|
+
{
|
11312
|
+
"kind": "Property",
|
11313
|
+
"canonicalReference": "server!DefaultPlayerEntityController#jumpLandHeavyOneshotAnimations:member",
|
11314
|
+
"docComment": "/**\n * The oneshot animation(s) that will play when the entity lands with a high velocity.\n */\n",
|
11315
|
+
"excerptTokens": [
|
11316
|
+
{
|
11317
|
+
"kind": "Content",
|
11318
|
+
"text": "jumpLandHeavyOneshotAnimations: "
|
11319
|
+
},
|
11320
|
+
{
|
11321
|
+
"kind": "Content",
|
11322
|
+
"text": "string[]"
|
11323
|
+
},
|
11324
|
+
{
|
11325
|
+
"kind": "Content",
|
11326
|
+
"text": ";"
|
11327
|
+
}
|
11328
|
+
],
|
11329
|
+
"isReadonly": false,
|
11330
|
+
"isOptional": false,
|
11331
|
+
"releaseTag": "Public",
|
11332
|
+
"name": "jumpLandHeavyOneshotAnimations",
|
11333
|
+
"propertyTypeTokenRange": {
|
11334
|
+
"startIndex": 1,
|
11335
|
+
"endIndex": 2
|
11336
|
+
},
|
11337
|
+
"isStatic": false,
|
11338
|
+
"isProtected": false,
|
11339
|
+
"isAbstract": false
|
11340
|
+
},
|
11341
|
+
{
|
11342
|
+
"kind": "Property",
|
11343
|
+
"canonicalReference": "server!DefaultPlayerEntityController#jumpLandLightOneshotAnimations:member",
|
11344
|
+
"docComment": "/**\n * The oneshot animation(s) that will play when the entity lands after jumping or being airborne.\n */\n",
|
11345
|
+
"excerptTokens": [
|
11346
|
+
{
|
11347
|
+
"kind": "Content",
|
11348
|
+
"text": "jumpLandLightOneshotAnimations: "
|
11349
|
+
},
|
11350
|
+
{
|
11351
|
+
"kind": "Content",
|
11352
|
+
"text": "string[]"
|
11353
|
+
},
|
11354
|
+
{
|
11355
|
+
"kind": "Content",
|
11356
|
+
"text": ";"
|
11357
|
+
}
|
11358
|
+
],
|
11359
|
+
"isReadonly": false,
|
11360
|
+
"isOptional": false,
|
11361
|
+
"releaseTag": "Public",
|
11362
|
+
"name": "jumpLandLightOneshotAnimations",
|
11363
|
+
"propertyTypeTokenRange": {
|
11364
|
+
"startIndex": 1,
|
11365
|
+
"endIndex": 2
|
11366
|
+
},
|
11367
|
+
"isStatic": false,
|
11368
|
+
"isProtected": false,
|
11369
|
+
"isAbstract": false
|
11370
|
+
},
|
11281
11371
|
{
|
11282
11372
|
"kind": "Property",
|
11283
11373
|
"canonicalReference": "server!DefaultPlayerEntityController#jumpOneshotAnimations:member",
|
@@ -11572,10 +11662,40 @@
|
|
11572
11662
|
"isProtected": false,
|
11573
11663
|
"isAbstract": false
|
11574
11664
|
},
|
11665
|
+
{
|
11666
|
+
"kind": "Property",
|
11667
|
+
"canonicalReference": "server!DefaultPlayerEntityController#swimIdleLoopedAnimations:member",
|
11668
|
+
"docComment": "/**\n * The looped animation(s) that will play when the entity is not moving while swimming.\n */\n",
|
11669
|
+
"excerptTokens": [
|
11670
|
+
{
|
11671
|
+
"kind": "Content",
|
11672
|
+
"text": "swimIdleLoopedAnimations: "
|
11673
|
+
},
|
11674
|
+
{
|
11675
|
+
"kind": "Content",
|
11676
|
+
"text": "string[]"
|
11677
|
+
},
|
11678
|
+
{
|
11679
|
+
"kind": "Content",
|
11680
|
+
"text": ";"
|
11681
|
+
}
|
11682
|
+
],
|
11683
|
+
"isReadonly": false,
|
11684
|
+
"isOptional": false,
|
11685
|
+
"releaseTag": "Public",
|
11686
|
+
"name": "swimIdleLoopedAnimations",
|
11687
|
+
"propertyTypeTokenRange": {
|
11688
|
+
"startIndex": 1,
|
11689
|
+
"endIndex": 2
|
11690
|
+
},
|
11691
|
+
"isStatic": false,
|
11692
|
+
"isProtected": false,
|
11693
|
+
"isAbstract": false
|
11694
|
+
},
|
11575
11695
|
{
|
11576
11696
|
"kind": "Property",
|
11577
11697
|
"canonicalReference": "server!DefaultPlayerEntityController#swimLoopedAnimations:member",
|
11578
|
-
"docComment": "/**\n * The looped animation(s) that will play when the entity is swimming.\n */\n",
|
11698
|
+
"docComment": "/**\n * The looped animation(s) that will play when the entity is swimming in any direction.\n */\n",
|
11579
11699
|
"excerptTokens": [
|
11580
11700
|
{
|
11581
11701
|
"kind": "Content",
|
@@ -11873,6 +11993,33 @@
|
|
11873
11993
|
"name": "DefaultPlayerEntityControllerOptions",
|
11874
11994
|
"preserveMemberOrder": false,
|
11875
11995
|
"members": [
|
11996
|
+
{
|
11997
|
+
"kind": "PropertySignature",
|
11998
|
+
"canonicalReference": "server!DefaultPlayerEntityControllerOptions#applyDirectionalMovementRotations:member",
|
11999
|
+
"docComment": "/**\n * Whether to apply directional rotations to the entity while moving, defaults to true.\n */\n",
|
12000
|
+
"excerptTokens": [
|
12001
|
+
{
|
12002
|
+
"kind": "Content",
|
12003
|
+
"text": "applyDirectionalMovementRotations?: "
|
12004
|
+
},
|
12005
|
+
{
|
12006
|
+
"kind": "Content",
|
12007
|
+
"text": "boolean"
|
12008
|
+
},
|
12009
|
+
{
|
12010
|
+
"kind": "Content",
|
12011
|
+
"text": ";"
|
12012
|
+
}
|
12013
|
+
],
|
12014
|
+
"isReadonly": false,
|
12015
|
+
"isOptional": true,
|
12016
|
+
"releaseTag": "Public",
|
12017
|
+
"name": "applyDirectionalMovementRotations",
|
12018
|
+
"propertyTypeTokenRange": {
|
12019
|
+
"startIndex": 1,
|
12020
|
+
"endIndex": 2
|
12021
|
+
}
|
12022
|
+
},
|
11876
12023
|
{
|
11877
12024
|
"kind": "PropertySignature",
|
11878
12025
|
"canonicalReference": "server!DefaultPlayerEntityControllerOptions#autoCancelMouseLeftClick:member",
|
@@ -12062,6 +12209,60 @@
|
|
12062
12209
|
"endIndex": 2
|
12063
12210
|
}
|
12064
12211
|
},
|
12212
|
+
{
|
12213
|
+
"kind": "PropertySignature",
|
12214
|
+
"canonicalReference": "server!DefaultPlayerEntityControllerOptions#jumpLandHeavyOneshotAnimations:member",
|
12215
|
+
"docComment": "/**\n * Overrides the animation(s) that will play when the entity lands with a high velocity.\n */\n",
|
12216
|
+
"excerptTokens": [
|
12217
|
+
{
|
12218
|
+
"kind": "Content",
|
12219
|
+
"text": "jumpLandHeavyOneshotAnimations?: "
|
12220
|
+
},
|
12221
|
+
{
|
12222
|
+
"kind": "Content",
|
12223
|
+
"text": "string[]"
|
12224
|
+
},
|
12225
|
+
{
|
12226
|
+
"kind": "Content",
|
12227
|
+
"text": ";"
|
12228
|
+
}
|
12229
|
+
],
|
12230
|
+
"isReadonly": false,
|
12231
|
+
"isOptional": true,
|
12232
|
+
"releaseTag": "Public",
|
12233
|
+
"name": "jumpLandHeavyOneshotAnimations",
|
12234
|
+
"propertyTypeTokenRange": {
|
12235
|
+
"startIndex": 1,
|
12236
|
+
"endIndex": 2
|
12237
|
+
}
|
12238
|
+
},
|
12239
|
+
{
|
12240
|
+
"kind": "PropertySignature",
|
12241
|
+
"canonicalReference": "server!DefaultPlayerEntityControllerOptions#jumpLandLightOneshotAnimations:member",
|
12242
|
+
"docComment": "/**\n * Overrides the animation(s) that will play when the entity lands after jumping or being airborne.\n */\n",
|
12243
|
+
"excerptTokens": [
|
12244
|
+
{
|
12245
|
+
"kind": "Content",
|
12246
|
+
"text": "jumpLandLightOneshotAnimations?: "
|
12247
|
+
},
|
12248
|
+
{
|
12249
|
+
"kind": "Content",
|
12250
|
+
"text": "string[]"
|
12251
|
+
},
|
12252
|
+
{
|
12253
|
+
"kind": "Content",
|
12254
|
+
"text": ";"
|
12255
|
+
}
|
12256
|
+
],
|
12257
|
+
"isReadonly": false,
|
12258
|
+
"isOptional": true,
|
12259
|
+
"releaseTag": "Public",
|
12260
|
+
"name": "jumpLandLightOneshotAnimations",
|
12261
|
+
"propertyTypeTokenRange": {
|
12262
|
+
"startIndex": 1,
|
12263
|
+
"endIndex": 2
|
12264
|
+
}
|
12265
|
+
},
|
12065
12266
|
{
|
12066
12267
|
"kind": "PropertySignature",
|
12067
12268
|
"canonicalReference": "server!DefaultPlayerEntityControllerOptions#jumpOneshotAnimations:member",
|
@@ -12251,10 +12452,37 @@
|
|
12251
12452
|
"endIndex": 2
|
12252
12453
|
}
|
12253
12454
|
},
|
12455
|
+
{
|
12456
|
+
"kind": "PropertySignature",
|
12457
|
+
"canonicalReference": "server!DefaultPlayerEntityControllerOptions#swimIdleLoopedAnimations:member",
|
12458
|
+
"docComment": "/**\n * The looped animation(s) that will play when the entity is not moving while swimming.\n */\n",
|
12459
|
+
"excerptTokens": [
|
12460
|
+
{
|
12461
|
+
"kind": "Content",
|
12462
|
+
"text": "swimIdleLoopedAnimations?: "
|
12463
|
+
},
|
12464
|
+
{
|
12465
|
+
"kind": "Content",
|
12466
|
+
"text": "string[]"
|
12467
|
+
},
|
12468
|
+
{
|
12469
|
+
"kind": "Content",
|
12470
|
+
"text": ";"
|
12471
|
+
}
|
12472
|
+
],
|
12473
|
+
"isReadonly": false,
|
12474
|
+
"isOptional": true,
|
12475
|
+
"releaseTag": "Public",
|
12476
|
+
"name": "swimIdleLoopedAnimations",
|
12477
|
+
"propertyTypeTokenRange": {
|
12478
|
+
"startIndex": 1,
|
12479
|
+
"endIndex": 2
|
12480
|
+
}
|
12481
|
+
},
|
12254
12482
|
{
|
12255
12483
|
"kind": "PropertySignature",
|
12256
12484
|
"canonicalReference": "server!DefaultPlayerEntityControllerOptions#swimLoopedAnimations:member",
|
12257
|
-
"docComment": "/**\n * The looped animation(s) that will play when the entity is swimming.\n */\n",
|
12485
|
+
"docComment": "/**\n * The looped animation(s) that will play when the entity is swimming in any direction.\n */\n",
|
12258
12486
|
"excerptTokens": [
|
12259
12487
|
{
|
12260
12488
|
"kind": "Content",
|
@@ -13384,7 +13612,7 @@
|
|
13384
13612
|
},
|
13385
13613
|
{
|
13386
13614
|
"kind": "Content",
|
13387
|
-
"text": "number
|
13615
|
+
"text": "number"
|
13388
13616
|
},
|
13389
13617
|
{
|
13390
13618
|
"kind": "Content",
|
@@ -14090,6 +14318,150 @@
|
|
14090
14318
|
"isAbstract": false,
|
14091
14319
|
"name": "startModelOneshotAnimations"
|
14092
14320
|
},
|
14321
|
+
{
|
14322
|
+
"kind": "Method",
|
14323
|
+
"canonicalReference": "server!Entity#stopAllModelAnimations:member(1)",
|
14324
|
+
"docComment": "/**\n * Stops all looped and oneshot animations for the entity, optionally excluded the provided animations from stopping.\n *\n * @param excludedAnimations - The animations to exclude from being stopped.\n */\n",
|
14325
|
+
"excerptTokens": [
|
14326
|
+
{
|
14327
|
+
"kind": "Content",
|
14328
|
+
"text": "stopAllModelAnimations(excludedAnimations?: "
|
14329
|
+
},
|
14330
|
+
{
|
14331
|
+
"kind": "Content",
|
14332
|
+
"text": "string[]"
|
14333
|
+
},
|
14334
|
+
{
|
14335
|
+
"kind": "Content",
|
14336
|
+
"text": "): "
|
14337
|
+
},
|
14338
|
+
{
|
14339
|
+
"kind": "Content",
|
14340
|
+
"text": "void"
|
14341
|
+
},
|
14342
|
+
{
|
14343
|
+
"kind": "Content",
|
14344
|
+
"text": ";"
|
14345
|
+
}
|
14346
|
+
],
|
14347
|
+
"isStatic": false,
|
14348
|
+
"returnTypeTokenRange": {
|
14349
|
+
"startIndex": 3,
|
14350
|
+
"endIndex": 4
|
14351
|
+
},
|
14352
|
+
"releaseTag": "Public",
|
14353
|
+
"isProtected": false,
|
14354
|
+
"overloadIndex": 1,
|
14355
|
+
"parameters": [
|
14356
|
+
{
|
14357
|
+
"parameterName": "excludedAnimations",
|
14358
|
+
"parameterTypeTokenRange": {
|
14359
|
+
"startIndex": 1,
|
14360
|
+
"endIndex": 2
|
14361
|
+
},
|
14362
|
+
"isOptional": true
|
14363
|
+
}
|
14364
|
+
],
|
14365
|
+
"isOptional": false,
|
14366
|
+
"isAbstract": false,
|
14367
|
+
"name": "stopAllModelAnimations"
|
14368
|
+
},
|
14369
|
+
{
|
14370
|
+
"kind": "Method",
|
14371
|
+
"canonicalReference": "server!Entity#stopAllModelLoopedAnimations:member(1)",
|
14372
|
+
"docComment": "/**\n * Stops all looped animations for the entity, optionally excluded the provided animations from stopping.\n *\n * @param excludedAnimations - The animations to exclude from being stopped.\n */\n",
|
14373
|
+
"excerptTokens": [
|
14374
|
+
{
|
14375
|
+
"kind": "Content",
|
14376
|
+
"text": "stopAllModelLoopedAnimations(excludedAnimations?: "
|
14377
|
+
},
|
14378
|
+
{
|
14379
|
+
"kind": "Content",
|
14380
|
+
"text": "string[]"
|
14381
|
+
},
|
14382
|
+
{
|
14383
|
+
"kind": "Content",
|
14384
|
+
"text": "): "
|
14385
|
+
},
|
14386
|
+
{
|
14387
|
+
"kind": "Content",
|
14388
|
+
"text": "void"
|
14389
|
+
},
|
14390
|
+
{
|
14391
|
+
"kind": "Content",
|
14392
|
+
"text": ";"
|
14393
|
+
}
|
14394
|
+
],
|
14395
|
+
"isStatic": false,
|
14396
|
+
"returnTypeTokenRange": {
|
14397
|
+
"startIndex": 3,
|
14398
|
+
"endIndex": 4
|
14399
|
+
},
|
14400
|
+
"releaseTag": "Public",
|
14401
|
+
"isProtected": false,
|
14402
|
+
"overloadIndex": 1,
|
14403
|
+
"parameters": [
|
14404
|
+
{
|
14405
|
+
"parameterName": "excludedAnimations",
|
14406
|
+
"parameterTypeTokenRange": {
|
14407
|
+
"startIndex": 1,
|
14408
|
+
"endIndex": 2
|
14409
|
+
},
|
14410
|
+
"isOptional": true
|
14411
|
+
}
|
14412
|
+
],
|
14413
|
+
"isOptional": false,
|
14414
|
+
"isAbstract": false,
|
14415
|
+
"name": "stopAllModelLoopedAnimations"
|
14416
|
+
},
|
14417
|
+
{
|
14418
|
+
"kind": "Method",
|
14419
|
+
"canonicalReference": "server!Entity#stopAllModelOneshotAnimations:member(1)",
|
14420
|
+
"docComment": "/**\n * Stops all oneshot animations for the entity, optionally excluded the provided animations from stopping.\n *\n * @param excludedAnimations - The animations to exclude from being stopped.\n */\n",
|
14421
|
+
"excerptTokens": [
|
14422
|
+
{
|
14423
|
+
"kind": "Content",
|
14424
|
+
"text": "stopAllModelOneshotAnimations(excludedAnimations?: "
|
14425
|
+
},
|
14426
|
+
{
|
14427
|
+
"kind": "Content",
|
14428
|
+
"text": "string[]"
|
14429
|
+
},
|
14430
|
+
{
|
14431
|
+
"kind": "Content",
|
14432
|
+
"text": "): "
|
14433
|
+
},
|
14434
|
+
{
|
14435
|
+
"kind": "Content",
|
14436
|
+
"text": "void"
|
14437
|
+
},
|
14438
|
+
{
|
14439
|
+
"kind": "Content",
|
14440
|
+
"text": ";"
|
14441
|
+
}
|
14442
|
+
],
|
14443
|
+
"isStatic": false,
|
14444
|
+
"returnTypeTokenRange": {
|
14445
|
+
"startIndex": 3,
|
14446
|
+
"endIndex": 4
|
14447
|
+
},
|
14448
|
+
"releaseTag": "Public",
|
14449
|
+
"isProtected": false,
|
14450
|
+
"overloadIndex": 1,
|
14451
|
+
"parameters": [
|
14452
|
+
{
|
14453
|
+
"parameterName": "excludedAnimations",
|
14454
|
+
"parameterTypeTokenRange": {
|
14455
|
+
"startIndex": 1,
|
14456
|
+
"endIndex": 2
|
14457
|
+
},
|
14458
|
+
"isOptional": true
|
14459
|
+
}
|
14460
|
+
],
|
14461
|
+
"isOptional": false,
|
14462
|
+
"isAbstract": false,
|
14463
|
+
"name": "stopAllModelOneshotAnimations"
|
14464
|
+
},
|
14093
14465
|
{
|
14094
14466
|
"kind": "Method",
|
14095
14467
|
"canonicalReference": "server!Entity#stopModelAnimations:member(1)",
|
package/server.d.ts
CHANGED
@@ -1470,6 +1470,19 @@ export declare class DefaultPlayerEntity extends PlayerEntity {
|
|
1470
1470
|
* @public
|
1471
1471
|
*/
|
1472
1472
|
export declare class DefaultPlayerEntityController extends BaseEntityController {
|
1473
|
+
private static readonly BASE_ENTITY_HEIGHT;
|
1474
|
+
private static readonly GROUND_SENSOR_HEIGHT_SCALE;
|
1475
|
+
private static readonly GROUND_SENSOR_RADIUS_SCALE;
|
1476
|
+
private static readonly JUMP_LAND_HEAVY_VELOCITY_THRESHOLD;
|
1477
|
+
private static readonly WALL_COLLIDER_HEIGHT_SCALE;
|
1478
|
+
private static readonly WALL_COLLIDER_RADIUS_SCALE;
|
1479
|
+
private static readonly MOVEMENT_ROTATIONS;
|
1480
|
+
private static readonly SWIM_UPWARD_COOLDOWN_MS;
|
1481
|
+
private static readonly SWIMMING_DRAG_FACTOR;
|
1482
|
+
private static readonly WATER_ENTRY_SINKING_FACTOR;
|
1483
|
+
private static readonly WATER_ENTRY_SINKING_MS;
|
1484
|
+
/** Whether to apply directional rotations to the entity while moving, defaults to true. */
|
1485
|
+
applyDirectionalMovementRotations: boolean;
|
1473
1486
|
/** Whether to automatically cancel left click input after first processed tick, defaults to true. */
|
1474
1487
|
autoCancelMouseLeftClick: boolean;
|
1475
1488
|
/**
|
@@ -1500,6 +1513,10 @@ export declare class DefaultPlayerEntityController extends BaseEntityController
|
|
1500
1513
|
idleLoopedAnimations: string[];
|
1501
1514
|
/** The oneshot animation(s) that will play when the entity interacts (left click) */
|
1502
1515
|
interactOneshotAnimations: string[];
|
1516
|
+
/** The oneshot animation(s) that will play when the entity lands with a high velocity. */
|
1517
|
+
jumpLandHeavyOneshotAnimations: string[];
|
1518
|
+
/** The oneshot animation(s) that will play when the entity lands after jumping or being airborne. */
|
1519
|
+
jumpLandLightOneshotAnimations: string[];
|
1503
1520
|
/** The oneshot animation(s) that will play when the entity is jumping. */
|
1504
1521
|
jumpOneshotAnimations: string[];
|
1505
1522
|
/** The upward velocity applied to the entity when it jumps. */
|
@@ -1514,7 +1531,9 @@ export declare class DefaultPlayerEntityController extends BaseEntityController
|
|
1514
1531
|
swimFastVelocity: number;
|
1515
1532
|
/** The gravity modifier applied to the entity when swimming. */
|
1516
1533
|
swimGravity: number;
|
1517
|
-
/** The looped animation(s) that will play when the entity is swimming. */
|
1534
|
+
/** The looped animation(s) that will play when the entity is not moving while swimming. */
|
1535
|
+
swimIdleLoopedAnimations: string[];
|
1536
|
+
/** The looped animation(s) that will play when the entity is swimming in any direction. */
|
1518
1537
|
swimLoopedAnimations: string[];
|
1519
1538
|
/** The maximum downward velocity that the entity can reach when affected by gravity while swimming. */
|
1520
1539
|
swimMaxGravityVelocity: number;
|
@@ -1531,6 +1550,12 @@ export declare class DefaultPlayerEntityController extends BaseEntityController
|
|
1531
1550
|
|
1532
1551
|
|
1533
1552
|
|
1553
|
+
|
1554
|
+
|
1555
|
+
|
1556
|
+
|
1557
|
+
|
1558
|
+
|
1534
1559
|
/**
|
1535
1560
|
* @param options - Options for the controller.
|
1536
1561
|
*/
|
@@ -1571,6 +1596,8 @@ export declare class DefaultPlayerEntityController extends BaseEntityController
|
|
1571
1596
|
|
1572
1597
|
/** Options for creating a DefaultPlayerEntityController instance. @public */
|
1573
1598
|
export declare interface DefaultPlayerEntityControllerOptions {
|
1599
|
+
/** Whether to apply directional rotations to the entity while moving, defaults to true. */
|
1600
|
+
applyDirectionalMovementRotations?: boolean;
|
1574
1601
|
/** Whether to automatically cancel left click input after first processed tick, defaults to true. */
|
1575
1602
|
autoCancelMouseLeftClick?: boolean;
|
1576
1603
|
/** A function allowing custom logic to determine if the entity can jump. */
|
@@ -1587,6 +1614,10 @@ export declare interface DefaultPlayerEntityControllerOptions {
|
|
1587
1614
|
interactOneshotAnimations?: string[];
|
1588
1615
|
/** Overrides the animation(s) that will play when the entity is jumping. */
|
1589
1616
|
jumpOneshotAnimations?: string[];
|
1617
|
+
/** Overrides the animation(s) that will play when the entity lands with a high velocity. */
|
1618
|
+
jumpLandHeavyOneshotAnimations?: string[];
|
1619
|
+
/** Overrides the animation(s) that will play when the entity lands after jumping or being airborne. */
|
1620
|
+
jumpLandLightOneshotAnimations?: string[];
|
1590
1621
|
/** The upward velocity applied to the entity when it jumps. */
|
1591
1622
|
jumpVelocity?: number;
|
1592
1623
|
/** The normalized horizontal velocity applied to the entity when it runs. */
|
@@ -1601,8 +1632,10 @@ export declare interface DefaultPlayerEntityControllerOptions {
|
|
1601
1632
|
swimGravity?: number;
|
1602
1633
|
/** The maximum downward velocity that the entity can reach when affected by gravity while swimming. */
|
1603
1634
|
swimMaxGravityVelocity?: number;
|
1604
|
-
/** The looped animation(s) that will play when the entity is swimming. */
|
1635
|
+
/** The looped animation(s) that will play when the entity is swimming in any direction. */
|
1605
1636
|
swimLoopedAnimations?: string[];
|
1637
|
+
/** The looped animation(s) that will play when the entity is not moving while swimming. */
|
1638
|
+
swimIdleLoopedAnimations?: string[];
|
1606
1639
|
/** The normalized horizontal velocity applied to the entity when it swims slowly (equivalent to walking). */
|
1607
1640
|
swimSlowVelocity?: number;
|
1608
1641
|
/** The upward velocity applied to the entity when swimming. */
|
@@ -1734,7 +1767,7 @@ export declare class Entity extends RigidBody implements protocol.Serializable {
|
|
1734
1767
|
/** The preferred shape of the entity's model when automatically generating its collider when no explicit colliders are provided. */
|
1735
1768
|
get modelPreferredShape(): ColliderShape | undefined;
|
1736
1769
|
/** The scale of the entity's model. */
|
1737
|
-
get modelScale(): number
|
1770
|
+
get modelScale(): number;
|
1738
1771
|
/** The URI or path to the .gltf model asset to be used for the entity. */
|
1739
1772
|
get modelUri(): string | undefined;
|
1740
1773
|
/** The name of the entity. */
|
@@ -1840,6 +1873,27 @@ export declare class Entity extends RigidBody implements protocol.Serializable {
|
|
1840
1873
|
* @param animations - The animations to start.
|
1841
1874
|
*/
|
1842
1875
|
startModelOneshotAnimations(animations: string[]): void;
|
1876
|
+
/**
|
1877
|
+
* Stops all looped and oneshot animations for the entity,
|
1878
|
+
* optionally excluded the provided animations from stopping.
|
1879
|
+
*
|
1880
|
+
* @param excludedAnimations - The animations to exclude from being stopped.
|
1881
|
+
*/
|
1882
|
+
stopAllModelAnimations(excludedAnimations?: string[]): void;
|
1883
|
+
/**
|
1884
|
+
* Stops all looped animations for the entity, optionally
|
1885
|
+
* excluded the provided animations from stopping.
|
1886
|
+
*
|
1887
|
+
* @param excludedAnimations - The animations to exclude from being stopped.
|
1888
|
+
*/
|
1889
|
+
stopAllModelLoopedAnimations(excludedAnimations?: string[]): void;
|
1890
|
+
/**
|
1891
|
+
* Stops all oneshot animations for the entity, optionally
|
1892
|
+
* excluded the provided animations from stopping.
|
1893
|
+
*
|
1894
|
+
* @param excludedAnimations - The animations to exclude from being stopped.
|
1895
|
+
*/
|
1896
|
+
stopAllModelOneshotAnimations(excludedAnimations?: string[]): void;
|
1843
1897
|
/**
|
1844
1898
|
* Stops the provided model animations for the entity.
|
1845
1899
|
*
|
@@ -1856,6 +1910,7 @@ export declare class Entity extends RigidBody implements protocol.Serializable {
|
|
1856
1910
|
|
1857
1911
|
|
1858
1912
|
|
1913
|
+
|
1859
1914
|
}
|
1860
1915
|
|
1861
1916
|
/** Event types an Entity instance can emit. See {@link EntityEventPayloads} for the payloads. @public */
|