hytopia 0.2.0 → 0.2.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.
- package/docs/server.quaternion.identity.md +19 -0
- package/docs/server.quaternion.length.md +13 -0
- package/docs/server.quaternion.logarithm.md +19 -0
- package/docs/server.quaternion.magnitude.md +1 -1
- package/docs/server.quaternion.md +114 -2
- package/docs/server.quaternion.power.md +55 -0
- package/docs/server.quaternion.randomize.md +19 -0
- package/docs/server.quaternion.setaxisangle.md +71 -0
- package/docs/server.quaternion.squaredlength.md +13 -0
- package/docs/server.quaternion.squaredmagnitude.md +1 -1
- package/docs/server.vector3.create.md +19 -0
- package/docs/server.vector3.length.md +13 -0
- package/docs/server.vector3.magnitude.md +1 -1
- package/docs/server.vector3.md +144 -2
- package/docs/server.vector3.randomize.md +55 -0
- package/docs/server.vector3.scaleandadd.md +71 -0
- package/docs/server.vector3.squaredlength.md +13 -0
- package/docs/server.vector3.squaredmagnitude.md +1 -1
- package/docs/server.vector3.transformmatrix3.md +55 -0
- package/docs/server.vector3.transformmatrix4.md +55 -0
- package/docs/server.vector3.transformquaternion.md +55 -0
- package/docs/server.vector3.zero.md +19 -0
- package/examples/hole-in-wall-game/index.ts +4 -4
- package/examples/wall-dodge-game/assets/audio/bgm.mp3 +0 -0
- package/examples/wall-dodge-game/index.ts +7 -0
- package/examples/zombies-fps/assets/ui/index.html +7 -1
- package/examples/zombies-fps/classes/EnemyEntity.ts +5 -3
- package/examples/zombies-fps/classes/GameManager.ts +112 -18
- package/examples/zombies-fps/classes/GamePlayerEntity.ts +11 -1
- package/examples/zombies-fps/classes/GunEntity.ts +13 -13
- package/examples/zombies-fps/classes/PurchaseBarrierEntity.ts +1 -0
- package/examples/zombies-fps/index.ts +2 -7
- package/package.json +1 -1
- package/server.api.json +678 -18
- package/server.d.ts +535 -4
- package/server.js +51 -51
- package/examples/ai-agents/bun.lockb +0 -0
- package/examples/big-world/bun.lockb +0 -0
- package/examples/block-entity/bun.lockb +0 -0
- package/examples/child-entity/bun.lockb +0 -0
- package/examples/child-entity/package-lock.json +0 -30
- package/examples/custom-ui/bun.lockb +0 -0
- package/examples/entity-controller/bun.lockb +0 -0
- package/examples/entity-spawn/bun.lockb +0 -0
- package/examples/hole-in-wall-game/bun.lockb +0 -0
- package/examples/lighting/bun.lockb +0 -0
- package/examples/pathfinding/bun.lockb +0 -0
- package/examples/payload-game/bun.lockb +0 -0
- package/examples/wall-dodge-game/bun.lockb +0 -0
- package/examples/zombies-fps/bun.lockb +0 -0
package/server.api.json
CHANGED
@@ -24020,6 +24020,38 @@
|
|
24020
24020
|
"isAbstract": false,
|
24021
24021
|
"name": "getAngle"
|
24022
24022
|
},
|
24023
|
+
{
|
24024
|
+
"kind": "Method",
|
24025
|
+
"canonicalReference": "server!Quaternion#identity:member(1)",
|
24026
|
+
"docComment": "/**\n * Sets the current quaternion to the identity quaternion.\n *\n * @returns The current quaternion.\n */\n",
|
24027
|
+
"excerptTokens": [
|
24028
|
+
{
|
24029
|
+
"kind": "Content",
|
24030
|
+
"text": "identity(): "
|
24031
|
+
},
|
24032
|
+
{
|
24033
|
+
"kind": "Reference",
|
24034
|
+
"text": "Quaternion",
|
24035
|
+
"canonicalReference": "server!Quaternion:class"
|
24036
|
+
},
|
24037
|
+
{
|
24038
|
+
"kind": "Content",
|
24039
|
+
"text": ";"
|
24040
|
+
}
|
24041
|
+
],
|
24042
|
+
"isStatic": false,
|
24043
|
+
"returnTypeTokenRange": {
|
24044
|
+
"startIndex": 1,
|
24045
|
+
"endIndex": 2
|
24046
|
+
},
|
24047
|
+
"releaseTag": "Public",
|
24048
|
+
"isProtected": false,
|
24049
|
+
"overloadIndex": 1,
|
24050
|
+
"parameters": [],
|
24051
|
+
"isOptional": false,
|
24052
|
+
"isAbstract": false,
|
24053
|
+
"name": "identity"
|
24054
|
+
},
|
24023
24055
|
{
|
24024
24056
|
"kind": "Method",
|
24025
24057
|
"canonicalReference": "server!Quaternion#invert:member(1)",
|
@@ -24052,6 +24084,36 @@
|
|
24052
24084
|
"isAbstract": false,
|
24053
24085
|
"name": "invert"
|
24054
24086
|
},
|
24087
|
+
{
|
24088
|
+
"kind": "Property",
|
24089
|
+
"canonicalReference": "server!Quaternion#length:member",
|
24090
|
+
"docComment": "/**\n * The length of the quaternion.\n */\n",
|
24091
|
+
"excerptTokens": [
|
24092
|
+
{
|
24093
|
+
"kind": "Content",
|
24094
|
+
"text": "get length(): "
|
24095
|
+
},
|
24096
|
+
{
|
24097
|
+
"kind": "Content",
|
24098
|
+
"text": "number"
|
24099
|
+
},
|
24100
|
+
{
|
24101
|
+
"kind": "Content",
|
24102
|
+
"text": ";"
|
24103
|
+
}
|
24104
|
+
],
|
24105
|
+
"isReadonly": true,
|
24106
|
+
"isOptional": false,
|
24107
|
+
"releaseTag": "Public",
|
24108
|
+
"name": "length",
|
24109
|
+
"propertyTypeTokenRange": {
|
24110
|
+
"startIndex": 1,
|
24111
|
+
"endIndex": 2
|
24112
|
+
},
|
24113
|
+
"isStatic": false,
|
24114
|
+
"isProtected": false,
|
24115
|
+
"isAbstract": false
|
24116
|
+
},
|
24055
24117
|
{
|
24056
24118
|
"kind": "Method",
|
24057
24119
|
"canonicalReference": "server!Quaternion#lerp:member(1)",
|
@@ -24118,10 +24180,42 @@
|
|
24118
24180
|
"isAbstract": false,
|
24119
24181
|
"name": "lerp"
|
24120
24182
|
},
|
24183
|
+
{
|
24184
|
+
"kind": "Method",
|
24185
|
+
"canonicalReference": "server!Quaternion#logarithm:member(1)",
|
24186
|
+
"docComment": "/**\n * Sets the current quaternion to its natural logarithm.\n *\n * @returns The current quaternion.\n */\n",
|
24187
|
+
"excerptTokens": [
|
24188
|
+
{
|
24189
|
+
"kind": "Content",
|
24190
|
+
"text": "logarithm(): "
|
24191
|
+
},
|
24192
|
+
{
|
24193
|
+
"kind": "Reference",
|
24194
|
+
"text": "Quaternion",
|
24195
|
+
"canonicalReference": "server!Quaternion:class"
|
24196
|
+
},
|
24197
|
+
{
|
24198
|
+
"kind": "Content",
|
24199
|
+
"text": ";"
|
24200
|
+
}
|
24201
|
+
],
|
24202
|
+
"isStatic": false,
|
24203
|
+
"returnTypeTokenRange": {
|
24204
|
+
"startIndex": 1,
|
24205
|
+
"endIndex": 2
|
24206
|
+
},
|
24207
|
+
"releaseTag": "Public",
|
24208
|
+
"isProtected": false,
|
24209
|
+
"overloadIndex": 1,
|
24210
|
+
"parameters": [],
|
24211
|
+
"isOptional": false,
|
24212
|
+
"isAbstract": false,
|
24213
|
+
"name": "logarithm"
|
24214
|
+
},
|
24121
24215
|
{
|
24122
24216
|
"kind": "Property",
|
24123
24217
|
"canonicalReference": "server!Quaternion#magnitude:member",
|
24124
|
-
"docComment": "/**\n * The magnitude of the quaternion.
|
24218
|
+
"docComment": "/**\n * The magnitude of the quaternion. Alias for `.length`.\n */\n",
|
24125
24219
|
"excerptTokens": [
|
24126
24220
|
{
|
24127
24221
|
"kind": "Content",
|
@@ -24230,6 +24324,87 @@
|
|
24230
24324
|
"isAbstract": false,
|
24231
24325
|
"name": "normalize"
|
24232
24326
|
},
|
24327
|
+
{
|
24328
|
+
"kind": "Method",
|
24329
|
+
"canonicalReference": "server!Quaternion#power:member(1)",
|
24330
|
+
"docComment": "/**\n * Raises the current quaternion to a power.\n *\n * @param exponent - The exponent to raise the quaternion to.\n *\n * @returns The current quaternion.\n */\n",
|
24331
|
+
"excerptTokens": [
|
24332
|
+
{
|
24333
|
+
"kind": "Content",
|
24334
|
+
"text": "power(exponent: "
|
24335
|
+
},
|
24336
|
+
{
|
24337
|
+
"kind": "Content",
|
24338
|
+
"text": "number"
|
24339
|
+
},
|
24340
|
+
{
|
24341
|
+
"kind": "Content",
|
24342
|
+
"text": "): "
|
24343
|
+
},
|
24344
|
+
{
|
24345
|
+
"kind": "Reference",
|
24346
|
+
"text": "Quaternion",
|
24347
|
+
"canonicalReference": "server!Quaternion:class"
|
24348
|
+
},
|
24349
|
+
{
|
24350
|
+
"kind": "Content",
|
24351
|
+
"text": ";"
|
24352
|
+
}
|
24353
|
+
],
|
24354
|
+
"isStatic": false,
|
24355
|
+
"returnTypeTokenRange": {
|
24356
|
+
"startIndex": 3,
|
24357
|
+
"endIndex": 4
|
24358
|
+
},
|
24359
|
+
"releaseTag": "Public",
|
24360
|
+
"isProtected": false,
|
24361
|
+
"overloadIndex": 1,
|
24362
|
+
"parameters": [
|
24363
|
+
{
|
24364
|
+
"parameterName": "exponent",
|
24365
|
+
"parameterTypeTokenRange": {
|
24366
|
+
"startIndex": 1,
|
24367
|
+
"endIndex": 2
|
24368
|
+
},
|
24369
|
+
"isOptional": false
|
24370
|
+
}
|
24371
|
+
],
|
24372
|
+
"isOptional": false,
|
24373
|
+
"isAbstract": false,
|
24374
|
+
"name": "power"
|
24375
|
+
},
|
24376
|
+
{
|
24377
|
+
"kind": "Method",
|
24378
|
+
"canonicalReference": "server!Quaternion#randomize:member(1)",
|
24379
|
+
"docComment": "/**\n * Randomizes the current quaternion.\n *\n * @returns The current quaternion.\n */\n",
|
24380
|
+
"excerptTokens": [
|
24381
|
+
{
|
24382
|
+
"kind": "Content",
|
24383
|
+
"text": "randomize(): "
|
24384
|
+
},
|
24385
|
+
{
|
24386
|
+
"kind": "Reference",
|
24387
|
+
"text": "Quaternion",
|
24388
|
+
"canonicalReference": "server!Quaternion:class"
|
24389
|
+
},
|
24390
|
+
{
|
24391
|
+
"kind": "Content",
|
24392
|
+
"text": ";"
|
24393
|
+
}
|
24394
|
+
],
|
24395
|
+
"isStatic": false,
|
24396
|
+
"returnTypeTokenRange": {
|
24397
|
+
"startIndex": 1,
|
24398
|
+
"endIndex": 2
|
24399
|
+
},
|
24400
|
+
"releaseTag": "Public",
|
24401
|
+
"isProtected": false,
|
24402
|
+
"overloadIndex": 1,
|
24403
|
+
"parameters": [],
|
24404
|
+
"isOptional": false,
|
24405
|
+
"isAbstract": false,
|
24406
|
+
"name": "randomize"
|
24407
|
+
},
|
24233
24408
|
{
|
24234
24409
|
"kind": "Method",
|
24235
24410
|
"canonicalReference": "server!Quaternion#rotateX:member(1)",
|
@@ -24426,6 +24601,72 @@
|
|
24426
24601
|
"isAbstract": false,
|
24427
24602
|
"name": "scale"
|
24428
24603
|
},
|
24604
|
+
{
|
24605
|
+
"kind": "Method",
|
24606
|
+
"canonicalReference": "server!Quaternion#setAxisAngle:member(1)",
|
24607
|
+
"docComment": "/**\n * Sets the current quaternion to the angle and rotation axis.\n *\n * @param axis - The axis to rotate around.\n *\n * @param angle - The angle to rotate in radians.\n *\n * @returns The current quaternion.\n */\n",
|
24608
|
+
"excerptTokens": [
|
24609
|
+
{
|
24610
|
+
"kind": "Content",
|
24611
|
+
"text": "setAxisAngle(axis: "
|
24612
|
+
},
|
24613
|
+
{
|
24614
|
+
"kind": "Reference",
|
24615
|
+
"text": "Vector3",
|
24616
|
+
"canonicalReference": "server!Vector3:class"
|
24617
|
+
},
|
24618
|
+
{
|
24619
|
+
"kind": "Content",
|
24620
|
+
"text": ", angle: "
|
24621
|
+
},
|
24622
|
+
{
|
24623
|
+
"kind": "Content",
|
24624
|
+
"text": "number"
|
24625
|
+
},
|
24626
|
+
{
|
24627
|
+
"kind": "Content",
|
24628
|
+
"text": "): "
|
24629
|
+
},
|
24630
|
+
{
|
24631
|
+
"kind": "Reference",
|
24632
|
+
"text": "Quaternion",
|
24633
|
+
"canonicalReference": "server!Quaternion:class"
|
24634
|
+
},
|
24635
|
+
{
|
24636
|
+
"kind": "Content",
|
24637
|
+
"text": ";"
|
24638
|
+
}
|
24639
|
+
],
|
24640
|
+
"isStatic": false,
|
24641
|
+
"returnTypeTokenRange": {
|
24642
|
+
"startIndex": 5,
|
24643
|
+
"endIndex": 6
|
24644
|
+
},
|
24645
|
+
"releaseTag": "Public",
|
24646
|
+
"isProtected": false,
|
24647
|
+
"overloadIndex": 1,
|
24648
|
+
"parameters": [
|
24649
|
+
{
|
24650
|
+
"parameterName": "axis",
|
24651
|
+
"parameterTypeTokenRange": {
|
24652
|
+
"startIndex": 1,
|
24653
|
+
"endIndex": 2
|
24654
|
+
},
|
24655
|
+
"isOptional": false
|
24656
|
+
},
|
24657
|
+
{
|
24658
|
+
"parameterName": "angle",
|
24659
|
+
"parameterTypeTokenRange": {
|
24660
|
+
"startIndex": 3,
|
24661
|
+
"endIndex": 4
|
24662
|
+
},
|
24663
|
+
"isOptional": false
|
24664
|
+
}
|
24665
|
+
],
|
24666
|
+
"isOptional": false,
|
24667
|
+
"isAbstract": false,
|
24668
|
+
"name": "setAxisAngle"
|
24669
|
+
},
|
24429
24670
|
{
|
24430
24671
|
"kind": "Method",
|
24431
24672
|
"canonicalReference": "server!Quaternion#slerp:member(1)",
|
@@ -24492,10 +24733,40 @@
|
|
24492
24733
|
"isAbstract": false,
|
24493
24734
|
"name": "slerp"
|
24494
24735
|
},
|
24736
|
+
{
|
24737
|
+
"kind": "Property",
|
24738
|
+
"canonicalReference": "server!Quaternion#squaredLength:member",
|
24739
|
+
"docComment": "/**\n * The squared length of the quaternion.\n */\n",
|
24740
|
+
"excerptTokens": [
|
24741
|
+
{
|
24742
|
+
"kind": "Content",
|
24743
|
+
"text": "get squaredLength(): "
|
24744
|
+
},
|
24745
|
+
{
|
24746
|
+
"kind": "Content",
|
24747
|
+
"text": "number"
|
24748
|
+
},
|
24749
|
+
{
|
24750
|
+
"kind": "Content",
|
24751
|
+
"text": ";"
|
24752
|
+
}
|
24753
|
+
],
|
24754
|
+
"isReadonly": true,
|
24755
|
+
"isOptional": false,
|
24756
|
+
"releaseTag": "Public",
|
24757
|
+
"name": "squaredLength",
|
24758
|
+
"propertyTypeTokenRange": {
|
24759
|
+
"startIndex": 1,
|
24760
|
+
"endIndex": 2
|
24761
|
+
},
|
24762
|
+
"isStatic": false,
|
24763
|
+
"isProtected": false,
|
24764
|
+
"isAbstract": false
|
24765
|
+
},
|
24495
24766
|
{
|
24496
24767
|
"kind": "Property",
|
24497
24768
|
"canonicalReference": "server!Quaternion#squaredMagnitude:member",
|
24498
|
-
"docComment": "/**\n * The squared magnitude of the quaternion.
|
24769
|
+
"docComment": "/**\n * The squared magnitude of the quaternion. Alias for `.squaredLength`.\n */\n",
|
24499
24770
|
"excerptTokens": [
|
24500
24771
|
{
|
24501
24772
|
"kind": "Content",
|
@@ -31205,21 +31476,12 @@
|
|
31205
31476
|
},
|
31206
31477
|
{
|
31207
31478
|
"kind": "Method",
|
31208
|
-
"canonicalReference": "server!Vector3
|
31209
|
-
"docComment": "/**\n *
|
31479
|
+
"canonicalReference": "server!Vector3.create:member(1)",
|
31480
|
+
"docComment": "/**\n * Creates a new `Vector3` instance.\n *\n * @returns A new `Vector3` instance.\n */\n",
|
31210
31481
|
"excerptTokens": [
|
31211
31482
|
{
|
31212
31483
|
"kind": "Content",
|
31213
|
-
"text": "
|
31214
|
-
},
|
31215
|
-
{
|
31216
|
-
"kind": "Reference",
|
31217
|
-
"text": "Vector3",
|
31218
|
-
"canonicalReference": "server!Vector3:class"
|
31219
|
-
},
|
31220
|
-
{
|
31221
|
-
"kind": "Content",
|
31222
|
-
"text": "): "
|
31484
|
+
"text": "static create(): "
|
31223
31485
|
},
|
31224
31486
|
{
|
31225
31487
|
"kind": "Reference",
|
@@ -31231,9 +31493,50 @@
|
|
31231
31493
|
"text": ";"
|
31232
31494
|
}
|
31233
31495
|
],
|
31234
|
-
"isStatic":
|
31496
|
+
"isStatic": true,
|
31235
31497
|
"returnTypeTokenRange": {
|
31236
|
-
"startIndex":
|
31498
|
+
"startIndex": 1,
|
31499
|
+
"endIndex": 2
|
31500
|
+
},
|
31501
|
+
"releaseTag": "Public",
|
31502
|
+
"isProtected": false,
|
31503
|
+
"overloadIndex": 1,
|
31504
|
+
"parameters": [],
|
31505
|
+
"isOptional": false,
|
31506
|
+
"isAbstract": false,
|
31507
|
+
"name": "create"
|
31508
|
+
},
|
31509
|
+
{
|
31510
|
+
"kind": "Method",
|
31511
|
+
"canonicalReference": "server!Vector3#cross:member(1)",
|
31512
|
+
"docComment": "/**\n * Calculates the cross product of the current vector and another vector.\n *\n * @param vector3 - The vector to calculate the cross product with.\n *\n * @returns The current vector.\n */\n",
|
31513
|
+
"excerptTokens": [
|
31514
|
+
{
|
31515
|
+
"kind": "Content",
|
31516
|
+
"text": "cross(vector3: "
|
31517
|
+
},
|
31518
|
+
{
|
31519
|
+
"kind": "Reference",
|
31520
|
+
"text": "Vector3",
|
31521
|
+
"canonicalReference": "server!Vector3:class"
|
31522
|
+
},
|
31523
|
+
{
|
31524
|
+
"kind": "Content",
|
31525
|
+
"text": "): "
|
31526
|
+
},
|
31527
|
+
{
|
31528
|
+
"kind": "Reference",
|
31529
|
+
"text": "Vector3",
|
31530
|
+
"canonicalReference": "server!Vector3:class"
|
31531
|
+
},
|
31532
|
+
{
|
31533
|
+
"kind": "Content",
|
31534
|
+
"text": ";"
|
31535
|
+
}
|
31536
|
+
],
|
31537
|
+
"isStatic": false,
|
31538
|
+
"returnTypeTokenRange": {
|
31539
|
+
"startIndex": 3,
|
31237
31540
|
"endIndex": 4
|
31238
31541
|
},
|
31239
31542
|
"releaseTag": "Public",
|
@@ -31564,6 +31867,36 @@
|
|
31564
31867
|
"isAbstract": false,
|
31565
31868
|
"name": "invert"
|
31566
31869
|
},
|
31870
|
+
{
|
31871
|
+
"kind": "Property",
|
31872
|
+
"canonicalReference": "server!Vector3#length:member",
|
31873
|
+
"docComment": "/**\n * The length of the vector.\n */\n",
|
31874
|
+
"excerptTokens": [
|
31875
|
+
{
|
31876
|
+
"kind": "Content",
|
31877
|
+
"text": "get length(): "
|
31878
|
+
},
|
31879
|
+
{
|
31880
|
+
"kind": "Content",
|
31881
|
+
"text": "number"
|
31882
|
+
},
|
31883
|
+
{
|
31884
|
+
"kind": "Content",
|
31885
|
+
"text": ";"
|
31886
|
+
}
|
31887
|
+
],
|
31888
|
+
"isReadonly": true,
|
31889
|
+
"isOptional": false,
|
31890
|
+
"releaseTag": "Public",
|
31891
|
+
"name": "length",
|
31892
|
+
"propertyTypeTokenRange": {
|
31893
|
+
"startIndex": 1,
|
31894
|
+
"endIndex": 2
|
31895
|
+
},
|
31896
|
+
"isStatic": false,
|
31897
|
+
"isProtected": false,
|
31898
|
+
"isAbstract": false
|
31899
|
+
},
|
31567
31900
|
{
|
31568
31901
|
"kind": "Method",
|
31569
31902
|
"canonicalReference": "server!Vector3#lerp:member(1)",
|
@@ -31633,7 +31966,7 @@
|
|
31633
31966
|
{
|
31634
31967
|
"kind": "Property",
|
31635
31968
|
"canonicalReference": "server!Vector3#magnitude:member",
|
31636
|
-
"docComment": "/**\n * The magnitude of the vector.
|
31969
|
+
"docComment": "/**\n * The magnitude of the vector. Alias for `length`.\n */\n",
|
31637
31970
|
"excerptTokens": [
|
31638
31971
|
{
|
31639
31972
|
"kind": "Content",
|
@@ -31874,6 +32207,55 @@
|
|
31874
32207
|
"isAbstract": false,
|
31875
32208
|
"name": "normalize"
|
31876
32209
|
},
|
32210
|
+
{
|
32211
|
+
"kind": "Method",
|
32212
|
+
"canonicalReference": "server!Vector3#randomize:member(1)",
|
32213
|
+
"docComment": "/**\n * Randomizes the vector.\n *\n * @param scale - Length of the resulting vector, if omitted a unit vector is set.\n *\n * @returns The current vector.\n */\n",
|
32214
|
+
"excerptTokens": [
|
32215
|
+
{
|
32216
|
+
"kind": "Content",
|
32217
|
+
"text": "randomize(scale?: "
|
32218
|
+
},
|
32219
|
+
{
|
32220
|
+
"kind": "Content",
|
32221
|
+
"text": "number"
|
32222
|
+
},
|
32223
|
+
{
|
32224
|
+
"kind": "Content",
|
32225
|
+
"text": "): "
|
32226
|
+
},
|
32227
|
+
{
|
32228
|
+
"kind": "Reference",
|
32229
|
+
"text": "Vector3",
|
32230
|
+
"canonicalReference": "server!Vector3:class"
|
32231
|
+
},
|
32232
|
+
{
|
32233
|
+
"kind": "Content",
|
32234
|
+
"text": ";"
|
32235
|
+
}
|
32236
|
+
],
|
32237
|
+
"isStatic": false,
|
32238
|
+
"returnTypeTokenRange": {
|
32239
|
+
"startIndex": 3,
|
32240
|
+
"endIndex": 4
|
32241
|
+
},
|
32242
|
+
"releaseTag": "Public",
|
32243
|
+
"isProtected": false,
|
32244
|
+
"overloadIndex": 1,
|
32245
|
+
"parameters": [
|
32246
|
+
{
|
32247
|
+
"parameterName": "scale",
|
32248
|
+
"parameterTypeTokenRange": {
|
32249
|
+
"startIndex": 1,
|
32250
|
+
"endIndex": 2
|
32251
|
+
},
|
32252
|
+
"isOptional": true
|
32253
|
+
}
|
32254
|
+
],
|
32255
|
+
"isOptional": false,
|
32256
|
+
"isAbstract": false,
|
32257
|
+
"name": "randomize"
|
32258
|
+
},
|
31877
32259
|
{
|
31878
32260
|
"kind": "Method",
|
31879
32261
|
"canonicalReference": "server!Vector3#rotateX:member(1)",
|
@@ -32153,10 +32535,106 @@
|
|
32153
32535
|
"isAbstract": false,
|
32154
32536
|
"name": "scale"
|
32155
32537
|
},
|
32538
|
+
{
|
32539
|
+
"kind": "Method",
|
32540
|
+
"canonicalReference": "server!Vector3#scaleAndAdd:member(1)",
|
32541
|
+
"docComment": "/**\n * Adds 2 vectors together after scaling the provided vector by a scalar value.\n *\n * @param vector3 - The vector to add the scaled vector to.\n *\n * @param scale - The scalar value to scale the current vector by.\n *\n * @returns The current vector.\n */\n",
|
32542
|
+
"excerptTokens": [
|
32543
|
+
{
|
32544
|
+
"kind": "Content",
|
32545
|
+
"text": "scaleAndAdd(vector3: "
|
32546
|
+
},
|
32547
|
+
{
|
32548
|
+
"kind": "Reference",
|
32549
|
+
"text": "Vector3",
|
32550
|
+
"canonicalReference": "server!Vector3:class"
|
32551
|
+
},
|
32552
|
+
{
|
32553
|
+
"kind": "Content",
|
32554
|
+
"text": ", scale: "
|
32555
|
+
},
|
32556
|
+
{
|
32557
|
+
"kind": "Content",
|
32558
|
+
"text": "number"
|
32559
|
+
},
|
32560
|
+
{
|
32561
|
+
"kind": "Content",
|
32562
|
+
"text": "): "
|
32563
|
+
},
|
32564
|
+
{
|
32565
|
+
"kind": "Reference",
|
32566
|
+
"text": "Vector3",
|
32567
|
+
"canonicalReference": "server!Vector3:class"
|
32568
|
+
},
|
32569
|
+
{
|
32570
|
+
"kind": "Content",
|
32571
|
+
"text": ";"
|
32572
|
+
}
|
32573
|
+
],
|
32574
|
+
"isStatic": false,
|
32575
|
+
"returnTypeTokenRange": {
|
32576
|
+
"startIndex": 5,
|
32577
|
+
"endIndex": 6
|
32578
|
+
},
|
32579
|
+
"releaseTag": "Public",
|
32580
|
+
"isProtected": false,
|
32581
|
+
"overloadIndex": 1,
|
32582
|
+
"parameters": [
|
32583
|
+
{
|
32584
|
+
"parameterName": "vector3",
|
32585
|
+
"parameterTypeTokenRange": {
|
32586
|
+
"startIndex": 1,
|
32587
|
+
"endIndex": 2
|
32588
|
+
},
|
32589
|
+
"isOptional": false
|
32590
|
+
},
|
32591
|
+
{
|
32592
|
+
"parameterName": "scale",
|
32593
|
+
"parameterTypeTokenRange": {
|
32594
|
+
"startIndex": 3,
|
32595
|
+
"endIndex": 4
|
32596
|
+
},
|
32597
|
+
"isOptional": false
|
32598
|
+
}
|
32599
|
+
],
|
32600
|
+
"isOptional": false,
|
32601
|
+
"isAbstract": false,
|
32602
|
+
"name": "scaleAndAdd"
|
32603
|
+
},
|
32604
|
+
{
|
32605
|
+
"kind": "Property",
|
32606
|
+
"canonicalReference": "server!Vector3#squaredLength:member",
|
32607
|
+
"docComment": "/**\n * The squared length of the vector.\n */\n",
|
32608
|
+
"excerptTokens": [
|
32609
|
+
{
|
32610
|
+
"kind": "Content",
|
32611
|
+
"text": "get squaredLength(): "
|
32612
|
+
},
|
32613
|
+
{
|
32614
|
+
"kind": "Content",
|
32615
|
+
"text": "number"
|
32616
|
+
},
|
32617
|
+
{
|
32618
|
+
"kind": "Content",
|
32619
|
+
"text": ";"
|
32620
|
+
}
|
32621
|
+
],
|
32622
|
+
"isReadonly": true,
|
32623
|
+
"isOptional": false,
|
32624
|
+
"releaseTag": "Public",
|
32625
|
+
"name": "squaredLength",
|
32626
|
+
"propertyTypeTokenRange": {
|
32627
|
+
"startIndex": 1,
|
32628
|
+
"endIndex": 2
|
32629
|
+
},
|
32630
|
+
"isStatic": false,
|
32631
|
+
"isProtected": false,
|
32632
|
+
"isAbstract": false
|
32633
|
+
},
|
32156
32634
|
{
|
32157
32635
|
"kind": "Property",
|
32158
32636
|
"canonicalReference": "server!Vector3#squaredMagnitude:member",
|
32159
|
-
"docComment": "/**\n * The squared magnitude of the vector.
|
32637
|
+
"docComment": "/**\n * The squared magnitude of the vector. Alias for `squaredLength`.\n */\n",
|
32160
32638
|
"excerptTokens": [
|
32161
32639
|
{
|
32162
32640
|
"kind": "Content",
|
@@ -32264,6 +32742,156 @@
|
|
32264
32742
|
"isAbstract": false,
|
32265
32743
|
"name": "toString"
|
32266
32744
|
},
|
32745
|
+
{
|
32746
|
+
"kind": "Method",
|
32747
|
+
"canonicalReference": "server!Vector3#transformMatrix3:member(1)",
|
32748
|
+
"docComment": "/**\n * Transforms the vector by a matrix3.\n *\n * @param matrix3 - The matrix3 to transform the vector by.\n *\n * @returns The current vector.\n */\n",
|
32749
|
+
"excerptTokens": [
|
32750
|
+
{
|
32751
|
+
"kind": "Content",
|
32752
|
+
"text": "transformMatrix3(matrix3: "
|
32753
|
+
},
|
32754
|
+
{
|
32755
|
+
"kind": "Reference",
|
32756
|
+
"text": "Matrix3",
|
32757
|
+
"canonicalReference": "server!~Matrix3:class"
|
32758
|
+
},
|
32759
|
+
{
|
32760
|
+
"kind": "Content",
|
32761
|
+
"text": "): "
|
32762
|
+
},
|
32763
|
+
{
|
32764
|
+
"kind": "Reference",
|
32765
|
+
"text": "Vector3",
|
32766
|
+
"canonicalReference": "server!Vector3:class"
|
32767
|
+
},
|
32768
|
+
{
|
32769
|
+
"kind": "Content",
|
32770
|
+
"text": ";"
|
32771
|
+
}
|
32772
|
+
],
|
32773
|
+
"isStatic": false,
|
32774
|
+
"returnTypeTokenRange": {
|
32775
|
+
"startIndex": 3,
|
32776
|
+
"endIndex": 4
|
32777
|
+
},
|
32778
|
+
"releaseTag": "Public",
|
32779
|
+
"isProtected": false,
|
32780
|
+
"overloadIndex": 1,
|
32781
|
+
"parameters": [
|
32782
|
+
{
|
32783
|
+
"parameterName": "matrix3",
|
32784
|
+
"parameterTypeTokenRange": {
|
32785
|
+
"startIndex": 1,
|
32786
|
+
"endIndex": 2
|
32787
|
+
},
|
32788
|
+
"isOptional": false
|
32789
|
+
}
|
32790
|
+
],
|
32791
|
+
"isOptional": false,
|
32792
|
+
"isAbstract": false,
|
32793
|
+
"name": "transformMatrix3"
|
32794
|
+
},
|
32795
|
+
{
|
32796
|
+
"kind": "Method",
|
32797
|
+
"canonicalReference": "server!Vector3#transformMatrix4:member(1)",
|
32798
|
+
"docComment": "/**\n * Transforms the vector by a matrix4.\n *\n * @param matrix4 - The matrix4 to transform the vector by.\n *\n * @returns The current vector.\n */\n",
|
32799
|
+
"excerptTokens": [
|
32800
|
+
{
|
32801
|
+
"kind": "Content",
|
32802
|
+
"text": "transformMatrix4(matrix4: "
|
32803
|
+
},
|
32804
|
+
{
|
32805
|
+
"kind": "Reference",
|
32806
|
+
"text": "Matrix4",
|
32807
|
+
"canonicalReference": "server!~Matrix4:class"
|
32808
|
+
},
|
32809
|
+
{
|
32810
|
+
"kind": "Content",
|
32811
|
+
"text": "): "
|
32812
|
+
},
|
32813
|
+
{
|
32814
|
+
"kind": "Reference",
|
32815
|
+
"text": "Vector3",
|
32816
|
+
"canonicalReference": "server!Vector3:class"
|
32817
|
+
},
|
32818
|
+
{
|
32819
|
+
"kind": "Content",
|
32820
|
+
"text": ";"
|
32821
|
+
}
|
32822
|
+
],
|
32823
|
+
"isStatic": false,
|
32824
|
+
"returnTypeTokenRange": {
|
32825
|
+
"startIndex": 3,
|
32826
|
+
"endIndex": 4
|
32827
|
+
},
|
32828
|
+
"releaseTag": "Public",
|
32829
|
+
"isProtected": false,
|
32830
|
+
"overloadIndex": 1,
|
32831
|
+
"parameters": [
|
32832
|
+
{
|
32833
|
+
"parameterName": "matrix4",
|
32834
|
+
"parameterTypeTokenRange": {
|
32835
|
+
"startIndex": 1,
|
32836
|
+
"endIndex": 2
|
32837
|
+
},
|
32838
|
+
"isOptional": false
|
32839
|
+
}
|
32840
|
+
],
|
32841
|
+
"isOptional": false,
|
32842
|
+
"isAbstract": false,
|
32843
|
+
"name": "transformMatrix4"
|
32844
|
+
},
|
32845
|
+
{
|
32846
|
+
"kind": "Method",
|
32847
|
+
"canonicalReference": "server!Vector3#transformQuaternion:member(1)",
|
32848
|
+
"docComment": "/**\n * Transforms the vector by a quaternion.\n *\n * @param quaternion - The quaternion to transform the vector by.\n *\n * @returns The current vector.\n */\n",
|
32849
|
+
"excerptTokens": [
|
32850
|
+
{
|
32851
|
+
"kind": "Content",
|
32852
|
+
"text": "transformQuaternion(quaternion: "
|
32853
|
+
},
|
32854
|
+
{
|
32855
|
+
"kind": "Reference",
|
32856
|
+
"text": "Quaternion",
|
32857
|
+
"canonicalReference": "server!Quaternion:class"
|
32858
|
+
},
|
32859
|
+
{
|
32860
|
+
"kind": "Content",
|
32861
|
+
"text": "): "
|
32862
|
+
},
|
32863
|
+
{
|
32864
|
+
"kind": "Reference",
|
32865
|
+
"text": "Vector3",
|
32866
|
+
"canonicalReference": "server!Vector3:class"
|
32867
|
+
},
|
32868
|
+
{
|
32869
|
+
"kind": "Content",
|
32870
|
+
"text": ";"
|
32871
|
+
}
|
32872
|
+
],
|
32873
|
+
"isStatic": false,
|
32874
|
+
"returnTypeTokenRange": {
|
32875
|
+
"startIndex": 3,
|
32876
|
+
"endIndex": 4
|
32877
|
+
},
|
32878
|
+
"releaseTag": "Public",
|
32879
|
+
"isProtected": false,
|
32880
|
+
"overloadIndex": 1,
|
32881
|
+
"parameters": [
|
32882
|
+
{
|
32883
|
+
"parameterName": "quaternion",
|
32884
|
+
"parameterTypeTokenRange": {
|
32885
|
+
"startIndex": 1,
|
32886
|
+
"endIndex": 2
|
32887
|
+
},
|
32888
|
+
"isOptional": false
|
32889
|
+
}
|
32890
|
+
],
|
32891
|
+
"isOptional": false,
|
32892
|
+
"isAbstract": false,
|
32893
|
+
"name": "transformQuaternion"
|
32894
|
+
},
|
32267
32895
|
{
|
32268
32896
|
"kind": "Property",
|
32269
32897
|
"canonicalReference": "server!Vector3#x:member",
|
@@ -32353,6 +32981,38 @@
|
|
32353
32981
|
"isStatic": false,
|
32354
32982
|
"isProtected": false,
|
32355
32983
|
"isAbstract": false
|
32984
|
+
},
|
32985
|
+
{
|
32986
|
+
"kind": "Method",
|
32987
|
+
"canonicalReference": "server!Vector3#zero:member(1)",
|
32988
|
+
"docComment": "/**\n * Sets each component of the vector to zero.\n *\n * @returns The current vector.\n */\n",
|
32989
|
+
"excerptTokens": [
|
32990
|
+
{
|
32991
|
+
"kind": "Content",
|
32992
|
+
"text": "zero(): "
|
32993
|
+
},
|
32994
|
+
{
|
32995
|
+
"kind": "Reference",
|
32996
|
+
"text": "Vector3",
|
32997
|
+
"canonicalReference": "server!Vector3:class"
|
32998
|
+
},
|
32999
|
+
{
|
33000
|
+
"kind": "Content",
|
33001
|
+
"text": ";"
|
33002
|
+
}
|
33003
|
+
],
|
33004
|
+
"isStatic": false,
|
33005
|
+
"returnTypeTokenRange": {
|
33006
|
+
"startIndex": 1,
|
33007
|
+
"endIndex": 2
|
33008
|
+
},
|
33009
|
+
"releaseTag": "Public",
|
33010
|
+
"isProtected": false,
|
33011
|
+
"overloadIndex": 1,
|
33012
|
+
"parameters": [],
|
33013
|
+
"isOptional": false,
|
33014
|
+
"isAbstract": false,
|
33015
|
+
"name": "zero"
|
32356
33016
|
}
|
32357
33017
|
],
|
32358
33018
|
"extendsTokenRange": {
|