-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAutomatic.json
2096 lines (2096 loc) · 66.1 KB
/
Automatic.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
[
{
"function": "AutoNoteFrequency",
"description": "Documentation Assumes that TDTD's library is in the environemnt--#endregion--#re\ngion ShortcutsAutoFlatSprite = LoadSprite('ui/menu/white_32.png')AutoColors = {b\nackground_dark = { 0.28627450980392, 0.25490196078431, 0.38039215686275 },backgr\nound_light = { 0.41960784313725, 0.39607843137255, 0.58823529411765 },wood_dark \n= { 0.6, 0.33725490196078, 0.42352941176471 },wood_light = { 0.78039215686275, 0\n.53333333333333, 0.56470588235294 },rock_dark = { 0.41960784313725, 0.3803921568\n6275, 0.46666666666667 },rock_light = { 0.49803921568627, 0.46274509803922, 0.55\n686274509804 },green_dark = { 0.3843137254902, 0.76078431372549, 0.7607843137254\n9 },green_light = { 0.4156862745098, 0.90980392156863, 0.63529411764706 },jade_d\nark = { 0.33725490196078, 0.52156862745098, 0.6 },jade_light = { 0.2941176470588\n2, 0.68627450980392, 0.69019607843137 },aqua_dark = { 0.28627450980392, 0.466666\n66666667, 0.58039215686275 },aqua_light = { 0.32156862745098, 0.60392156862745, \n0.78039215686275 },pastel_dark = { 1, 0.7921568627451, 0.83137254901961 },pastel\n_light = { 0.80392156862745, 0.70588235294118, 0.85882352941176 },pink_dark = { \n0.70196078431373, 0.45098039215686, 0.64313725490196 },pink_light = { 0.94901960\n784314, 0.57647058823529, 0.86274509803922 },purple_dark = { 0.56470588235294, 0\n.34117647058824, 0.63921568627451 },purple_light = { 0.77647058823529, 0.4509803\n9215686, 0.8156862745098 },yellow_dark = { 0.7921568627451, 0.65490196078431, 0.\n32156862745098 },yellow_light = { 0.89803921568627, 0.75686274509804, 0.36862745\n098039 },amber_dark = { 0.7843137254902, 0.50196078431373, 0.28627450980392 },am\nber_light = { 0.96470588235294, 0.63921568627451, 0.18039215686275 },red_dark = \n{ 0.72549019607843, 0.35686274509804, 0.48627450980392 },red_light = { 0.8431372\n5490196, 0.33333333333333, 0.41960784313725 },white_dark = { 0.84705882352941, 0\n.74509803921569, 0.61960784313725 },white_light = { 0.96470588235294, 0.91372549\n019608, 0.80392156862745 },blue_dark = { 0.2078431372549, 0.31372549019608, 0.43\n921568627451 },blue_light = { 0.19607843137255, 0.61176470588235, 0.788235294117\n65 },alert_dark = { 0.22352941176471, 0.098039215686275, 0.2 },alert_light = { 0\n.74901960784314, 0.21960784313725, 0.49019607843137 },}Creates pitch frequencies\n for UiSound",
"arguments": [
"baseline string"
],
"returns": [
"{ C:number, Cs:number, D:number, Ds:number, E:number, F:number, Fs:number, G:number, Gs:number, A:number, As:number, B:number }"
]
},
{
"function": "AutoSigmoid",
"description": "Sigmoid function, Can be used for juicy UI and smooth easing among other things.\nhttps://www.desmos.com/calculator/cmmwrjtyit?invertedColors",
"arguments": [
"v number? Input number, if nil then it will be a Random number between 0 and 1",
"max number The Maximum value",
"steep number How steep the curve is",
"offset number The horizontal offset of the middle of the curve"
],
"returns": [
"number"
]
},
{
"function": "AutoRound",
"description": "Rounds a number.This was a Challenge by @TallTim and @1ssnl to make the smallest\n rounding function, but I expanded it to make it easier to read and a little mor\ne efficent",
"arguments": [
"v number Input number",
"increment number? The lowest increment. A Step of 1 will round the number to 1, A step of 5 will round it to the closest increment of 5, A step of 0.1 will round to the tenth. Default is 1"
],
"returns": [
"number"
]
},
{
"function": "AutoMap",
"description": "Maps a value from range a1-a2 to range b1-b2",
"arguments": [
"v number Input number",
"a1 number Goes from the range of number a1",
"a2 number To number a2",
"b1 number To the range of b1",
"b2 number To number b2",
"clamp boolean? Clamp the number between b1 and b2, Default is false"
],
"returns": [
"number"
]
},
{
"function": "AutoClamp",
"description": "Limits a value from going below the min and above the max",
"arguments": [
"v number The number to clamp",
"min number? The minimum the number can be, Default is 0",
"max number? The maximum the number can be, Default is 1"
],
"returns": [
"number"
]
},
{
"function": "AutoClampLength",
"description": "Limits a value from going below the min and above the max",
"arguments": [
"v number The number to clamp",
"max number? The maximum the length of the number can be, Default is 1"
],
"returns": [
"number"
]
},
{
"function": "AutoWrap",
"description": "Wraps a value inbetween a range, Thank you iaobardar for the Optimization",
"arguments": [
"v number The number to wrap",
"min number? The minimum range",
"max number? The maximum range"
],
"returns": [
"number"
]
},
{
"function": "AutoLerp",
"description": "Linerarly Iterpolates between `a` and `b` by fraction `t`Does not clamp",
"arguments": [
"a number Goes from number A",
"b number To number B",
"t number Interpolated by T"
],
"returns": [
"number"
]
},
{
"function": "AutoLerpWrap",
"description": "Spherically Iterpolates between `a` and `b` by fraction `t`.Basically Lerp but w\nith wrapping",
"arguments": [
"a number Goes from number A",
"b number To number B",
"t number Interpolated by T",
"w number Wraps at"
],
"returns": [
"number"
]
},
{
"function": "AutoMove",
"description": "Moves `a` towards `b` by amount `t`Will clamp as to not overshoot",
"arguments": [
"a number Goes from number A",
"b number To number B",
"t number Moved by T"
],
"returns": [
"number"
]
},
{
"function": "AutoDist",
"description": "Return the Distance between the numbers `a` and `b`",
"arguments": [
"a number",
"b number"
],
"returns": [
"number"
]
},
{
"function": "AutoNormalize",
"description": "Normalizes all values in a table to have a magnitude of 1 - Scales every number \nto still represent the same \"direction\"",
"arguments": [
"t table<number>",
"scale number?"
],
"returns": [
"table"
]
},
{
"function": "AutoFlex",
"description": "Takes a table of weights, like {1, 2, 0.5, 0.5}, and produces a table of how muc\nh space each weight would take up if it were to span over a given length.If give\nn the weights {1, 2, 0.5, 0.5}, with a span length of 100, the resulting table w\nould be = {25, 50, 12.5, 12.5}.A padding parameter can also be added which can b\ne used to make Ui easier. Iterate through the resulting table, after each UiRect\n, move the width + the padding parameter",
"arguments": [
"weights table<number>|number weights",
"span number",
"padding number?"
],
"returns": [
"table"
]
},
{
"function": "AutoBias",
"description": "Returns index of the selected weight using a bias based on the weight values. Go\nod for Biased Randomness",
"arguments": [
"weights table<number>"
],
"returns": [
"number selected"
]
},
{
"function": "AutoSwizzle",
"description": "Rebuilds a table in a given order, also known as Swizzling| Swizzle | Result || \n | || `xyz` | { x, y, z } || `zxy` | { z, x, y } || `xy` | { x, y } || `xz` | {\n x, z } || `xxx` | { x, x, x } || `xyzw` | { x, y, z, w } || `wxyz` | { w, x, y,\n z } || `rgba` | { r, g, b, a } || `bgra` | { b, g, r, a } || `aaaa` | { a, a, a\n, a } |",
"arguments": [
"vec vector|table",
"swizzle string"
],
"returns": [
"table"
]
},
{
"function": "AutoVecEquals",
"description": "Returns true if each axis of vector `a` is equal to each axis of vector `b`",
"arguments": [
"a vector",
"b vector"
],
"returns": [
"boolean"
]
},
{
"function": "AutoVecRnd",
"description": "Return a Random Vector with an optional offset and scale",
"arguments": [
"param1 number|vector",
"param2 number?"
],
"returns": [
"vector"
]
},
{
"function": "AutoVecDist",
"description": "Return the Distance between Two Vectors",
"arguments": [
"a vector",
"b vector"
],
"returns": [
"number"
]
},
{
"function": "AutoVecMove",
"description": "Moves a vector in a direction by a given amountEquivalent to `VecAdd(vec, VecSca\nle(dir, dist))`",
"arguments": [
"vec any",
"dir any",
"dist any"
],
"returns": [
"vector"
]
},
{
"function": "AutoVecRound",
"description": "Return the Vector Rounded to a number",
"arguments": [
"vec vector",
"r number?"
],
"returns": [
"vector"
]
},
{
"function": "AutoVecRescale",
"description": "Return a vector that has the magnitude of `b`, but with the direction of `a`Equi\nvalent to `VecScale(VecNormalize(a), b)`",
"arguments": [
"a vector",
"b number"
],
"returns": [
"vector"
]
},
{
"function": "AutoVecMap",
"description": "Maps a Vector from range a1-a2 to range b1-b2",
"arguments": [
"v vector Input Vector",
"a1 number Goes from the range of number a1",
"a2 number To number a2",
"b1 number To the range of b1",
"b2 number To number b2"
],
"returns": [
"vector"
]
},
{
"function": "AutoVecClampMagnitude",
"description": "Limits the magnitude of a vector to be between min and max",
"arguments": [
"v vector The Vector to clamp",
"min number? The minimum the magnitude can be, Default is 0",
"max number? The maximum the magnitude can be, Default is 1"
],
"returns": [
"vector"
]
},
{
"function": "AutoVecClamp",
"description": "Limits a vector to be between min and max",
"arguments": [
"v vector The Vector to clamp",
"min number? The minimum, Default is 0",
"max number? The maximum, Default is 1"
],
"returns": [
"vector"
]
},
{
"function": "AutoVecOne",
"description": "Return Vec(1, 1, 1) scaled by length",
"arguments": [
"length number return the vector of size length, Default is 1"
],
"returns": [
"vector"
]
},
{
"function": "AutoVecMidpoint",
"description": "Returns the midpoint between two vectorsEquivalent to `VecScale(VecAdd(a, b), 0.\n5)`",
"arguments": [
"a any",
"b any"
],
"returns": [
"vector"
]
},
{
"function": "AutoVecMulti",
"description": "Return Vec `a` multiplied by Vec `b`",
"arguments": [
"a vector",
"b vector"
],
"returns": [
"vector"
]
},
{
"function": "AutoVecDiv",
"description": "Return Vec `a` divided by Vec `b`",
"arguments": [
"a vector",
"b vector"
],
"returns": [
"vector"
]
},
{
"function": "AutoVecPow",
"description": "Return Vec `a` to the Power of `b`",
"arguments": [
"a vector",
"b number"
],
"returns": [
"vector"
]
},
{
"function": "AutoVecPowVec",
"description": "Return Vec `a` to the Power of Vec `b`",
"arguments": [
"a vector",
"b vector"
],
"returns": [
"vector"
]
},
{
"function": "AutoVecAbs",
"description": "Returns the absolute value of an vector",
"arguments": [
"v vector"
],
"returns": [
"vector"
]
},
{
"function": "AutoVecMin",
"description": "Equivalent to `math.min(unpack(v))`",
"arguments": [
"v vector"
],
"returns": [
"number"
]
},
{
"function": "AutoVecMax",
"description": "Equivalent to `math.max(unpack(v))`",
"arguments": [
"v vector"
],
"returns": [
"number"
]
},
{
"function": "AutoVecRotate",
"description": "Rotates a vector around an axis by a given angle",
"arguments": [
"vec vector The vector to rotate ",
"axis vector The rotation axis, a unit vector ",
"angle number The rotation angle in degrees "
],
"returns": [
"vector vec The rotated vector"
]
},
{
"function": "AutoVecSubsituteX",
"description": "Return `v` with it's `x` value replaced by `subx`",
"arguments": [
"v vector",
"subx number"
],
"returns": [
"None"
]
},
{
"function": "AutoVecSubsituteY",
"description": "Return `v` with it's `y` value replaced by `suby`",
"arguments": [
"v vector",
"suby number"
],
"returns": [
"None"
]
},
{
"function": "AutoVecSubsituteZ",
"description": "Return `v` with it's `z` value replaced by `subz`",
"arguments": [
"v vector",
"subz number"
],
"returns": [
"None"
]
},
{
"function": "AutoDotToAngle",
"description": "Converts the output of VecDot with normalized vectors to an angle",
"arguments": [
"dot number"
],
"returns": [
"number"
]
},
{
"function": "AutoQuatFwd",
"description": "Equivalent to `QuatRotateVec(rot, Vec(0, 0, 1))`",
"arguments": [
"rot quaternion"
],
"returns": [
"vector"
]
},
{
"function": "AutoRandomQuat",
"description": "Returns a random quaternion",
"arguments": [
"angle number degrees"
],
"returns": [
"quaternion"
]
},
{
"function": "AutoQuatDot",
"description": "Computes the dot product of two quaternions.",
"arguments": [
"a quaternion",
"b quaternion"
],
"returns": [
"number"
]
},
{
"function": "AutoQuatConjugate",
"description": "Returns the Conjugate of the given quaternion.",
"arguments": [
"quat quaternion"
],
"returns": [
"quaternion quat"
]
},
{
"function": "AutoQuatInverse",
"description": "Returns the Inverse of the given quaternion.",
"arguments": [
"quat quaternion"
],
"returns": [
"quaternion quat"
]
},
{
"function": "function AutoQuatNearest",
"description": "Between -a and a, picks the quaternion nearest to b",
"arguments": [
"a quaternion",
"b quaternion"
],
"returns": [
"quaternionThankyou to Mathias for this"
]
},
{
"function": "---@param v any\n---@return quaternion\nfunction AutoQuatFromAxisAngle",
"description": "Same as `QuatAxisAngle()` but takes a single vector instead of a unit vector + a\nn angle, for convenienceThankyou to Mathias for this",
"arguments": [
"None"
],
"returns": [
"None"
]
},
{
"function": "function AutoQuatToAxisAngle",
"description": "Converts a quaternion to an axis angle representationReturns a rotation vector w\nhere axis is the direction and angle is the lengthThankyou to Mathias for this",
"arguments": [
"None"
],
"returns": [
"None"
]
},
{
"function": "AutoBodyCenter",
"description": "Get the center of a body's bounds",
"arguments": [
"body body_handle"
],
"returns": [
"vector"
]
},
{
"function": "AutoShapeCenter",
"description": "Get the center of a shapes's bounds",
"arguments": [
"shape shape_handle"
],
"returns": [
"vector"
]
},
{
"function": "AutoAABBExpandPoint",
"description": "Returns a Axis ALigned Bounding Box with the center of pos",
"arguments": [
"pos vector",
"halfextents vector|number"
],
"returns": [
"vector lower-bound",
"vector upper-bound"
]
},
{
"function": "AutoAABBCorrection",
"description": "Takes two vectors and modifys them so they can be used in other bound functions",
"arguments": [
"aa vector",
"bb vector"
],
"returns": [
"vector",
"vector"
]
},
{
"function": "AutoAABBGetPos",
"description": "Get a position inside or on the Input Bounds",
"arguments": [
"aa vector lower-bound",
"bb vector upper-bound",
"vec vector? A normalized Vector pointing towards the position that should be retrieved, Default is Vec(0, 0, 0)"
],
"returns": [
"vector"
]
},
{
"function": "AutoAABBGetCorners",
"description": "Get the corners of the given Bounds",
"arguments": [
"aa vector lower-bound",
"bb vector upper-bound"
],
"returns": [
"table"
]
},
{
"function": "AutoAABBSize",
"description": "Get data about the size of the given Bounds",
"arguments": [
"aa vector lower-bound",
"bb vector upper-bound"
],
"returns": [
"table representing the size of the Bounds",
"number smallest smallest edge size of the Bounds",
"number longest longest edge size of the Bounds"
]
},
{
"function": "AutoSubdivideBounds",
"description": "Takes a given AABB and subdivides into new AABBs",
"arguments": [
"aa vector lower-bound",
"bb vector upper-bound",
"levels number?"
],
"returns": [
"table"
]
},
{
"function": "AutoDrawAABB",
"description": "Draws a given Axis Aligned Bounding Box",
"arguments": [
"aa vector lower-bound",
"bb vector upper-bound",
"colorR number",
"colorG number",
"colorB number",
"alpha number",
"rgbcolors boolean?",
"draw boolean?"
],
"returns": [
"None"
]
},
{
"function": "AutoAABBToOBB",
"description": "@class OBB: { pos:vector, rot:quaternion, size:vector }|transformConverts an Axi\ns Aligned Bounding Box to a Oriented Bounding Box",
"arguments": [
"aa vector",
"bb vector"
],
"returns": [
"OBB"
]
},
{
"function": "AutoOBB",
"description": "Defines a Oriented Bounding Box",
"arguments": [
"center vector",
"rot quaternion",
"size vector|number?"
],
"returns": [
"table"
]
},
{
"function": "AutoGetOBBCorners",
"description": "Returns the corners of a Oriented Bounding Box",
"arguments": [
"obb OBB"
],
"returns": [
"{ xyz:table, Xyz:table, xYz:table, xyZ:table, XYz:table, XyZ:table, xYZ:table, XYZ:table }"
]
},
{
"function": "AutoGetOBBFaces",
"description": "Returns the planes and corners representing the faces of a Oriented Bounding Box",
"arguments": [
"obb OBB"
],
"returns": [
"{ z:plane, zn:plane, x:plane, xn:plane, y:plane, yn:plane }",
"{ xyz:table, Xyz:table, xYz:table, xyZ:table, XYz:table, XyZ:table, xYZ:table, XYZ:table }"
]
},
{
"function": "AutoOBBLines",
"description": "Returns a table representing the lines connecting the sides of a Oriented Boundi\nng Box",
"arguments": [
"obb OBB"
],
"returns": [
"table<{ [1]:vector, [2]:vector }>"
]
},
{
"function": "AutoGetShapeOBB",
"description": "",
"arguments": [
"shape shape_handle"
],
"returns": [
"OBB"
]
},
{
"function": "AutoDrawOBB",
"description": "Draws a given Oriented Bounding Box",
"arguments": [
"obb OBB",
"red number? Default is 0",
"green number? Default is 0",
"blue number? Default is 0",
"alpha number? Default is 1"
],
"returns": [
"None"
]
},
{
"function": "AutoPlane",
"description": "@class plane: { pos:vector, rot:quaternion, size:{ [1]:number, [2]:number } }|tr\nansform",
"arguments": [
"pos vector",
"rot quaternion",
"size { [1]:number, [2]:number }"
],
"returns": [
"plane"
]
},
{
"function": "AutoGetPlaneCorners",
"description": "",
"arguments": [
"plane plane"
],
"returns": [
"{ [1]:vector, [2]:vector, [3]:vector, [4]:vector }"
]
},
{
"function": "AutoRaycastPlane",
"description": "",
"arguments": [
"plane plane",
"startPos vector",
"direction vector",
"oneway boolean?"
],
"returns": [
"{ hit:boolean, intersection:vector, normal:vector, dist:number, dot:number }"
]
},
{
"function": "AutoDrawPlane",
"description": "",
"arguments": [
"plane plane",
"pattern 0|1|2|3",
"patternstrength number",
"oneway boolean?",
"r number?",
"g number?",
"b number?",
"a number?"
],
"returns": [
"None"
]
},
{
"function": "---@param _layer number?\n---@return table\nfunction AutoProcessOctree",
"description": "Undocumented",
"arguments": [
"BoundsAA vector",
"BoundsBB vector",
"Layers number",
"conditionalFuction"
],
"returns": [
"None"
]
},
{
"function": "AutoQueryBoundsForBody",
"description": "Undocumented",
"arguments": [
"aa vector",
"bb vector"
],
"returns": [
"boolean",
"table"
]
},
{
"function": "function?\nfunction AutoDrawOctree",
"description": "Draws the Octree from AutoProcessOctree",
"arguments": [
"node table",
"layer number",
"draw"
],
"returns": [
"None"
]
},
{
"function": "AutoSimInstance",
"description": "Creates a Point Physics Simulation Instance",
"arguments": [
"None"
],
"returns": [
"None"
]
},
{
"function": "t:CreatePoint",
"description": "Creates a Point to be Simulated with SimInstance:CreatePoint(), you can add para\nmeters after it is created and change existing ones, such as point.reflectivity,\n and point.mass",
"arguments": [
"Position vector? Default is Vec(0, 0, 0)",
"Velocity vector? Default is Vec(0, 0, 0)"
],
"returns": [
"table point",
"number newindex"
]
},
{
"function": "t:Simulate",
"description": "Updates all of the point in the Simulation",
"arguments": [
"dt number The timestep that is used. Default is GetTimeStep()"
],
"returns": [
"None"
]
},
{
"function": "or table of functions\n\t---@param index table The Index of the Point that should be removed\n\tfunction t:Remove",
"description": "Removes a point from the Simulation by it's index, Calls point.remove if it is a",
"arguments": [
"None"
],
"returns": [
"None"
]
},
{
"function": "The Function that is called, called with the input parameter of",
"description": "Iterate through every Point",
"arguments": [
"func"
],
"returns": [
"None"
]
},
{
"function": "---@param Image string|false? A image that is drawn in the position of the points, Default is 'ui/common/dot.png', if set to false, then draws a Transform at the position instead\n\t---@param SizeMultiplier number? a multipler for the size of the drawn image, Default is 3.5\n\t---@param Occlude boolean? Whether to hide points that are obscured by walls, Default is true\n\tfunction t:Draw",
"description": "Draw every point in which point.draw is not false (by default, point.draw is tru\ne), calling p.draw at the end if it is a",
"arguments": [
"None"
],
"returns": [
"None"
]
},
{
"function": "AutoSM_Define",
"description": "@class Secondary_Motion_Data: tableReturns a table representing a Second Order S\nystem (SOS) that can be used to make secondary motion",
"arguments": [
"initial number|table<number>",
"frequency number",
"dampening number",
"response number",
"raw_k boolean?"
],
"returns": [
"Secondary_Motion_Data"
]
},
{
"function": "AutoSM_DefineQuat",
"description": "Returns a table representing a Second Order System (SOS) that can be used to mak\ne secondary motion",
"arguments": [
"initial number|table<number>",
"frequency number",
"dampening number",
"response number",
"raw_k boolean?"
],
"returns": [
"Secondary_Motion_Data"
]
},
{
"function": "is used in conjunction with the AutoSM_Define\n---@param sm Secondary_Motion_Data\n---@param target number|table<number>\n---@param timestep number\nfunction AutoSM_Update",
"description": "Updates the state of the Second Order System (SOS) towards the target value, ove\nr the specified timestep.This",
"arguments": [
"None"
],
"returns": [
"None"
]
},
{
"function": "AutoSM_Get",
"description": "\"wtf\" - Autumnsm.data.velocity = VecAdd(sm.data.velocity, VecScale(VecScale(VecA\ndd(s, VecSub(VecScale(dx, sm.k_values[3]), VecScale(sm.data.velocity, sm.k_value\ns[1]))), timestep), 1 / k2_stable)) endendReturns the current value of a Seco\nnd Order System",
"arguments": [
"sm Secondary_Motion_Data"
],
"returns": [
"number|table<number>|quaternion"
]
},
{
"function": "AutoSM_GetVelocity",
"description": "Returns the current velocity of a Second Order System",
"arguments": [
"sm Secondary_Motion_Data"
],
"returns": [
"number|table<number>"
]
},
{
"function": "AutoSM_Set",
"description": "Sets the current values of a Second Order System",
"arguments": [
"sm Secondary_Motion_Data",
"target number|table<number>|quaternion",
"keep_velocity boolean?"
],
"returns": [
"None"
]
},
{
"function": "AutoSM_SetVelocity",
"description": "Sets the current velocity of a Second Order System",
"arguments": [
"sm Secondary_Motion_Data",
"velocity number|table<number>"
],
"returns": [
"None"
]
},
{
"function": "AutoSM_AddVelocity",
"description": "Adds a amount to the current velocity of a Second Order System",
"arguments": [
"sm Secondary_Motion_Data",
"velocity number|table<number>"
],
"returns": [
"None"
]
},
{
"function": "AutoSM_RecalculateK",
"description": "Recalculates The K values for a Second Order System",
"arguments": [
"sm Secondary_Motion_Data",
"frequency number",
"dampening number",
"response number",
"raw_k boolean?"
],
"returns": [
"None"
]
},
{
"function": "AutoTableCount",
"description": "Returns the amount of elements in the given list.",
"arguments": [
"t table"
],
"returns": [
"integer"
]
},
{
"function": "AutoTableRepeatValue",
"description": "Repeats a value `v`, `r` amount of times",
"arguments": [
"v any",
"r integer"
],
"returns": [
"table"
]
},
{
"function": "AutoTableConcat",
"description": "Concats Table 2 onto the end of Table 1, does not return anything",
"arguments": [
"t1 table",
"t2 table"
],
"returns": [
"None"
]
},
{
"function": "AutoTableMerge",
"description": "Merges two tables together, does not return anything",
"arguments": [
"base table",
"overwrite table"
],
"returns": [
"None"
]