@rbxts/types 1.0.567 → 1.0.571
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/include/generated/None.d.ts +109 -52
- package/include/macro_math.d.ts +14 -20
- package/package.json +1 -1
|
@@ -8,7 +8,6 @@ interface Services {
|
|
|
8
8
|
AnalyticsService: AnalyticsService;
|
|
9
9
|
AnimationClipProvider: AnimationClipProvider;
|
|
10
10
|
AnimationFromVideoCreatorService: AnimationFromVideoCreatorService;
|
|
11
|
-
AnimationFromVideoCreatorStudioService: AnimationFromVideoCreatorStudioService;
|
|
12
11
|
AppUpdateService: AppUpdateService;
|
|
13
12
|
AssetCounterService: AssetCounterService;
|
|
14
13
|
AssetDeliveryProxy: AssetDeliveryProxy;
|
|
@@ -89,6 +88,7 @@ interface Services {
|
|
|
89
88
|
Stats: Stats;
|
|
90
89
|
StudioAssetService: StudioAssetService;
|
|
91
90
|
StudioDeviceEmulatorService: StudioDeviceEmulatorService;
|
|
91
|
+
StudioPublishService: StudioPublishService;
|
|
92
92
|
StudioScriptDebugEventListener: StudioScriptDebugEventListener;
|
|
93
93
|
Teams: Teams;
|
|
94
94
|
TeleportService: TeleportService;
|
|
@@ -1652,17 +1652,6 @@ interface AnimationFromVideoCreatorService extends Instance {
|
|
|
1652
1652
|
readonly _nominal_AnimationFromVideoCreatorService: unique symbol;
|
|
1653
1653
|
}
|
|
1654
1654
|
|
|
1655
|
-
interface AnimationFromVideoCreatorStudioService extends Instance {
|
|
1656
|
-
/**
|
|
1657
|
-
* **DO NOT USE!**
|
|
1658
|
-
*
|
|
1659
|
-
* This field exists to force TypeScript to recognize this as a nominal type
|
|
1660
|
-
* @hidden
|
|
1661
|
-
* @deprecated
|
|
1662
|
-
*/
|
|
1663
|
-
readonly _nominal_AnimationFromVideoCreatorStudioService: unique symbol;
|
|
1664
|
-
}
|
|
1665
|
-
|
|
1666
1655
|
interface AnimationRigData extends Instance {
|
|
1667
1656
|
/**
|
|
1668
1657
|
* **DO NOT USE!**
|
|
@@ -2229,7 +2218,7 @@ interface Attachment extends Instance {
|
|
|
2229
2218
|
*/
|
|
2230
2219
|
readonly _nominal_Attachment: unique symbol;
|
|
2231
2220
|
/**
|
|
2232
|
-
*
|
|
2221
|
+
* The [Axis](https://developer.roblox.com/en-us/api-reference/property/Attachment/Axis) is the direction of the [Attachment](https://developer.roblox.com/en-us/api-reference/class/Attachment)'s X-Axis, represented as a unit `Vector3`.
|
|
2233
2222
|
* Tags: NotReplicated
|
|
2234
2223
|
*/
|
|
2235
2224
|
Axis: Vector3;
|
|
@@ -2239,7 +2228,7 @@ interface Attachment extends Instance {
|
|
|
2239
2228
|
*
|
|
2240
2229
|
* Changes to this property will reflect onto the [Attachment.Position](https://developer.roblox.com/en-us/api-reference/property/Attachment/Position) & [Attachment.Rotation](https://developer.roblox.com/en-us/api-reference/property/Attachment/Rotation) properties of this object.
|
|
2241
2230
|
*
|
|
2242
|
-
* Similarly, a change to either of those properties will reflect onto this property.
|
|
2231
|
+
* Similarly, a change to either of those properties will reflect onto this property.
|
|
2243
2232
|
*/
|
|
2244
2233
|
CFrame: CFrame;
|
|
2245
2234
|
/**
|
|
@@ -2259,7 +2248,7 @@ interface Attachment extends Instance {
|
|
|
2259
2248
|
*/
|
|
2260
2249
|
Rotation: Vector3;
|
|
2261
2250
|
/**
|
|
2262
|
-
*
|
|
2251
|
+
* The [SecondaryAxis](https://developer.roblox.com/en-us/api-reference/property/Attachment/SecondaryAxis) is the direction of the [Attachment](https://developer.roblox.com/en-us/api-reference/class/Attachment)'s Y-Axis, represented as a unit `Vector3`.
|
|
2263
2252
|
* Tags: NotReplicated
|
|
2264
2253
|
*/
|
|
2265
2254
|
SecondaryAxis: Vector3;
|
|
@@ -2268,7 +2257,7 @@ interface Attachment extends Instance {
|
|
|
2268
2257
|
*/
|
|
2269
2258
|
Visible: boolean;
|
|
2270
2259
|
/**
|
|
2271
|
-
* Represents the direction of the `Attachment|Attachment's` Attachment/Axis|X-Axis`relative to the world, as a unit
|
|
2260
|
+
* Represents the direction of the `Attachment|Attachment's` `Attachment/Axis|X-Axis` relative to the world, as a unit [Vector3](https://developer.roblox.com/en-us/api-reference/datatype/Vector3) with a length of 1.
|
|
2272
2261
|
* Tags: NotReplicated
|
|
2273
2262
|
*/
|
|
2274
2263
|
WorldAxis: Vector3;
|
|
@@ -6313,7 +6302,7 @@ interface CollectionService extends Instance {
|
|
|
6313
6302
|
*
|
|
6314
6303
|
* This method does not guarantee any ordering of the returned objects. Additionally, it is possible that objects can have the given tag assigned to them, but not be a descendant of the [DataModel](https://developer.roblox.com/en-us/api-reference/class/DataModel), i.e. its parent is nil. This method will not return such objects.
|
|
6315
6304
|
*/
|
|
6316
|
-
GetTagged
|
|
6305
|
+
GetTagged(this: CollectionService, tag: string): Array<Instance>;
|
|
6317
6306
|
/**
|
|
6318
6307
|
* GetTags is given an object and returns a table of strings, which are the tags applied to the given object.
|
|
6319
6308
|
*
|
|
@@ -6478,11 +6467,11 @@ interface Constraint extends Instance {
|
|
|
6478
6467
|
Visible: boolean;
|
|
6479
6468
|
}
|
|
6480
6469
|
|
|
6481
|
-
/** An AlignOrientation
|
|
6470
|
+
/** An AlignOrientation attempts to constrain its [Attachment0](https://developer.roblox.com/en-us/api-reference/property/Constraint/Attachment0)'s orientation to the goal orientation, which is determined by [Attachment1](https://developer.roblox.com/en-us/api-reference/property/Constraint/Attachment1) or [CFrame](https://developer.roblox.com/en-us/api-reference/property/AlignOrientation/CFrame) depending on the [Mode](https://developer.roblox.com/en-us/api-reference/property/AlignOrientation/Mode).
|
|
6482
6471
|
*
|
|
6483
6472
|
* 
|
|
6484
6473
|
*
|
|
6485
|
-
* By default, this constraint only applies torque on
|
|
6474
|
+
* By default, this constraint only applies torque on [Attachment0](https://developer.roblox.com/en-us/api-reference/property/Constraint/Attachment0)'s parent, although it can be configured to apply torque on both attachments. This torque can be limited to a max amount via [AlignOrientation.MaxTorque](https://developer.roblox.com/en-us/api-reference/property/AlignOrientation/MaxTorque).
|
|
6486
6475
|
*
|
|
6487
6476
|
* **Note**
|
|
6488
6477
|
*
|
|
@@ -6491,16 +6480,16 @@ interface Constraint extends Instance {
|
|
|
6491
6480
|
* Primary axis
|
|
6492
6481
|
* ------------
|
|
6493
6482
|
*
|
|
6494
|
-
* The behavior of an AlignOrientation is determined by its [AlignOrientation.PrimaryAxisOnly](https://developer.roblox.com/en-us/api-reference/property/AlignOrientation/PrimaryAxisOnly) property. By default this value is false and an AlignOrientation will work so that the orientation of its Attachment0 exactly matches the orientation of its
|
|
6483
|
+
* The behavior of an AlignOrientation is determined by its [AlignOrientation.PrimaryAxisOnly](https://developer.roblox.com/en-us/api-reference/property/AlignOrientation/PrimaryAxisOnly) property. By default this value is false and an AlignOrientation will work so that the orientation of its Attachment0 exactly matches the orientation of its goal. It will apply torque about all 3 axes to achieve this goal.
|
|
6495
6484
|
*
|
|
6496
|
-
* If PrimaryAxisOnly is set to true, then the AlignOrientation will only apply torque if the primary axis of its Attachment0 becomes unaligned with
|
|
6485
|
+
* If PrimaryAxisOnly is set to true, then the AlignOrientation will only apply torque if the primary axis of its Attachment0 becomes unaligned with the goal. This means that any rotation about the Attachment0's primary axis will not create a torque.
|
|
6497
6486
|
*
|
|
6498
6487
|
* Torque magnitude
|
|
6499
6488
|
* ----------------
|
|
6500
6489
|
*
|
|
6501
6490
|
* The torque used to constrain an AlignOrientation can either be configured or set to the maximum that constraints allow. Whether the torque is configurable is determined by the [AlignOrientation.RigidityEnabled](https://developer.roblox.com/en-us/api-reference/property/AlignOrientation/RigidityEnabled) property.
|
|
6502
6491
|
*
|
|
6503
|
-
* When RigidityEnabled is true,
|
|
6492
|
+
* When RigidityEnabled is true, the physics solver reacts as quickly as possible to complete the alignment. This is the same scale of force used to align other constraints, such as prismatics when their attachments are misaligned.
|
|
6504
6493
|
*
|
|
6505
6494
|
* When RigidityEnabled is false, then the force will be determined by the MaxTorque, MaxAngularVelocity, and Responsiveness. MaxForce and MaxVelocity are caps to the torque and angular velocity respectively. The actual scale of the torque is determined by the Responsiveness. The mechanism for responsiveness is a little complicated, but put simply the higher the responsiveness, the quicker the constraint will try to reach its goal.
|
|
6506
6495
|
*
|
|
@@ -6525,7 +6514,7 @@ interface AlignOrientation extends Constraint {
|
|
|
6525
6514
|
*/
|
|
6526
6515
|
readonly _nominal_AlignOrientation: unique symbol;
|
|
6527
6516
|
/**
|
|
6528
|
-
*
|
|
6517
|
+
* The [AlignType](https://developer.roblox.com/en-us/api-reference/property/AlignOrientation/AlignType) specifies the desired relationship between the primary axes of the `AlignOrientation/Attachment0|Attachment0` and the goal. The constraint will try to maintain this relationship by applying forces within specified limits.
|
|
6529
6518
|
*
|
|
6530
6519
|
* This property is visible in Studio and meaningful only when [AlignOrientation.PrimaryAxisOnly](https://developer.roblox.com/en-us/api-reference/property/AlignOrientation/PrimaryAxisOnly) is set _true_.
|
|
6531
6520
|
*
|
|
@@ -6552,6 +6541,9 @@ interface AlignOrientation extends Constraint {
|
|
|
6552
6541
|
* Two perpendicular axes
|
|
6553
6542
|
*/
|
|
6554
6543
|
AlignType: Enum.AlignType;
|
|
6544
|
+
/**
|
|
6545
|
+
* The orientation of the CFrame determines the goal orientation of the [AlignOrientation](https://developer.roblox.com/en-us/api-reference/class/AlignOrientation) when its [Mode](https://developer.roblox.com/en-us/api-reference/property/AlignOrientation/Mode) is [OneAttachment](https://developer.roblox.com/en-us/api-reference/enum/OrientationAlignmentMode). The translation component of the CFrame is ignored.
|
|
6546
|
+
*/
|
|
6555
6547
|
CFrame: CFrame;
|
|
6556
6548
|
/**
|
|
6557
6549
|
* The maximum angular velocity the constraint can use to reach its goal.
|
|
@@ -6561,10 +6553,26 @@ interface AlignOrientation extends Constraint {
|
|
|
6561
6553
|
* The maximum torque the constraint can use to reach its goal.
|
|
6562
6554
|
*/
|
|
6563
6555
|
MaxTorque: number;
|
|
6556
|
+
/**
|
|
6557
|
+
* The Mode specifies the way its constraint determines its goal orientation.
|
|
6558
|
+
*
|
|
6559
|
+
* OneAttachment
|
|
6560
|
+
* -------------
|
|
6561
|
+
*
|
|
6562
|
+
* The constraint attempts to match the orientation of [Attachment0](https://developer.roblox.com/en-us/api-reference/property/Constraint/Attachment0) to the orientation of [CFrame](https://developer.roblox.com/en-us/api-reference/property/AlignOrientation/CFrame). [Attachment1](https://developer.roblox.com/en-us/api-reference/property/Constraint/Attachment1) is not used.
|
|
6563
|
+
*
|
|
6564
|
+
* TwoAttachment
|
|
6565
|
+
* -------------
|
|
6566
|
+
*
|
|
6567
|
+
* The constraint attempts to match the orientation of [Attachment0](https://developer.roblox.com/en-us/api-reference/property/Constraint/Attachment0) to the orientation of [Attachment1](https://developer.roblox.com/en-us/api-reference/property/Constraint/Attachment1). [CFrame](https://developer.roblox.com/en-us/api-reference/property/AlignOrientation/CFrame), [PrimaryAxis](https://developer.roblox.com/en-us/api-reference/property/AlignOrientation/PrimaryAxis), and [SecondaryAxis](https://developer.roblox.com/en-us/api-reference/property/AlignOrientation/SecondaryAxis) are not used.
|
|
6568
|
+
*/
|
|
6564
6569
|
Mode: Enum.OrientationAlignmentMode;
|
|
6570
|
+
/**
|
|
6571
|
+
* The [PrimaryAxis](https://developer.roblox.com/en-us/api-reference/property/AlignOrientation/PrimaryAxis) is the direction of the goal's X-Axis, represented as a unit `Vector3`. This is only used when the [AlignOrientation](https://developer.roblox.com/en-us/api-reference/class/AlignOrientation)'s [Mode](https://developer.roblox.com/en-us/api-reference/property/AlignOrientation/Mode) is [OneAttachment](https://developer.roblox.com/en-us/api-reference/enum/OrientationAlignmentMode).
|
|
6572
|
+
*/
|
|
6565
6573
|
PrimaryAxis: Vector3;
|
|
6566
6574
|
/**
|
|
6567
|
-
* If
|
|
6575
|
+
* If true, the [AlignOrientation](https://developer.roblox.com/en-us/api-reference/class/AlignOrientation) applies torque if the primary axis of its [Attachment0](https://developer.roblox.com/en-us/api-reference/property/Constraint/Attachment0) becomes unaligned with the goal. This means that any rotation about the Attachment0's primary axis will not create a torque.
|
|
6568
6576
|
*/
|
|
6569
6577
|
PrimaryAxisOnly: boolean;
|
|
6570
6578
|
/**
|
|
@@ -6572,17 +6580,20 @@ interface AlignOrientation extends Constraint {
|
|
|
6572
6580
|
*/
|
|
6573
6581
|
ReactionTorqueEnabled: boolean;
|
|
6574
6582
|
/**
|
|
6575
|
-
*
|
|
6583
|
+
* Controls how quickly the constraint will reach its goal. Higher values will cause the attachment to align quicker. Value can be between 5 and 200.
|
|
6576
6584
|
*/
|
|
6577
6585
|
Responsiveness: number;
|
|
6578
6586
|
/**
|
|
6579
|
-
* When
|
|
6587
|
+
* When true, the solver reacts as quickly as possible to complete the alignment. When false, the torque is dependent on `MaxTorque`, `MaxAngularVelocity`, and `Responsiveness`.
|
|
6580
6588
|
*/
|
|
6581
6589
|
RigidityEnabled: boolean;
|
|
6590
|
+
/**
|
|
6591
|
+
* The [SecondaryAxis](https://developer.roblox.com/en-us/api-reference/property/AlignOrientation/SecondaryAxis) is the direction of the goal's Y-Axis, represented as a unit `Vector3`. This is only used when the [AlignOrientation](https://developer.roblox.com/en-us/api-reference/class/AlignOrientation)'s [Mode](https://developer.roblox.com/en-us/api-reference/property/AlignOrientation/Mode) is [OneAttachment](https://developer.roblox.com/en-us/api-reference/enum/OrientationAlignmentMode).
|
|
6592
|
+
*/
|
|
6582
6593
|
SecondaryAxis: Vector3;
|
|
6583
6594
|
}
|
|
6584
6595
|
|
|
6585
|
-
/** An AlignPosition
|
|
6596
|
+
/** An AlignPosition attempts to constrain its [Attachment0](https://developer.roblox.com/en-us/api-reference/property/Constraint/Attachment0)'s position to the goal position, which is determined by [Attachment1](https://developer.roblox.com/en-us/api-reference/property/Constraint/Attachment1) or [Position](https://developer.roblox.com/en-us/api-reference/property/AlignPosition/Position) depending on the [Mode](https://developer.roblox.com/en-us/api-reference/property/AlignPosition/Mode).
|
|
6586
6597
|
*
|
|
6587
6598
|
* 
|
|
6588
6599
|
*
|
|
@@ -6598,7 +6609,7 @@ interface AlignOrientation extends Constraint {
|
|
|
6598
6609
|
* Force location
|
|
6599
6610
|
* --------------
|
|
6600
6611
|
*
|
|
6601
|
-
* By default the force created by an AlignPosition is applied to the parent Part of Attachment0 at the Attachment's location. The direction of the force is always towards
|
|
6612
|
+
* By default the force created by an AlignPosition is applied to the parent Part of Attachment0 at the Attachment's location. The direction of the force is always towards the goal. This means that if the center of mass of the Part is not aligned with the direction of the force, a torque will be applied to the part as well as a force.
|
|
6602
6613
|
*
|
|
6603
6614
|
* AlignPositions' behaviors can be changed with the [AlignPosition.ApplyAtCenterOfMass](https://developer.roblox.com/en-us/api-reference/property/AlignPosition/ApplyAtCenterOfMass) property. When enabled, the AlignPosition will check if other Parts are rigidly connected to the parent Part of Attachment0. If there are, then the force will be applied at the center of mass of those connected parts. If not, then the force will be applied at the center of mass of the parent part itself.
|
|
6604
6615
|
*
|
|
@@ -6607,7 +6618,7 @@ interface AlignOrientation extends Constraint {
|
|
|
6607
6618
|
*
|
|
6608
6619
|
* The force used to constrain an AlignPosition can either be configured or set to the maximum that constraints allow. Whether the force is configurable is determined by the [AlignPosition.RigidityEnabled](https://developer.roblox.com/en-us/api-reference/property/AlignPosition/RigidityEnabled) property.
|
|
6609
6620
|
*
|
|
6610
|
-
* When RigidityEnabled is true,
|
|
6621
|
+
* When RigidityEnabled is true, the physics solver reacts as quickly as possible to complete the alignment. This is the same scale of force used to connect other constraints, such as hinges when their attachments are separated.
|
|
6611
6622
|
*
|
|
6612
6623
|
* When RigidityEnabled is false, then the force will be determined by the [AlignPosition.MaxForce](https://developer.roblox.com/en-us/api-reference/property/AlignPosition/MaxForce), [AlignPosition.MaxVelocity](https://developer.roblox.com/en-us/api-reference/property/AlignPosition/MaxVelocity), and [AlignPosition.Responsiveness](https://developer.roblox.com/en-us/api-reference/property/AlignPosition/Responsiveness). MaxForce and MaxVelocity are caps to the force and velocities respectively. The actual scale of the force is determined by the Responsiveness. The mechanism for responsiveness is a little complicated, but put simply the higher the responsiveness, the quicker the constraint will try to reach its goal.
|
|
6613
6624
|
*
|
|
@@ -6638,18 +6649,34 @@ interface AlignPosition extends Constraint {
|
|
|
6638
6649
|
* Maximum speed the Attachment can move when converging. Only used if RigidityEnabled is false.
|
|
6639
6650
|
*/
|
|
6640
6651
|
MaxVelocity: number;
|
|
6652
|
+
/**
|
|
6653
|
+
* The Mode specifies the way its constraint determines its goal.
|
|
6654
|
+
*
|
|
6655
|
+
* OneAttachment
|
|
6656
|
+
* -------------
|
|
6657
|
+
*
|
|
6658
|
+
* The constraint attempts to move [Attachment0](https://developer.roblox.com/en-us/api-reference/property/Constraint/Attachment0) to [Position](https://developer.roblox.com/en-us/api-reference/property/AlignPosition/Position). [Attachment1](https://developer.roblox.com/en-us/api-reference/property/Constraint/Attachment1) is not used.
|
|
6659
|
+
*
|
|
6660
|
+
* TwoAttachment
|
|
6661
|
+
* -------------
|
|
6662
|
+
*
|
|
6663
|
+
* The constraint attempts to move [Attachment0](https://developer.roblox.com/en-us/api-reference/property/Constraint/Attachment0) to the position of [Attachment1](https://developer.roblox.com/en-us/api-reference/property/Constraint/Attachment1). [Position](https://developer.roblox.com/en-us/api-reference/property/AlignPosition/Position) is not used.
|
|
6664
|
+
*/
|
|
6641
6665
|
Mode: Enum.PositionAlignmentMode;
|
|
6666
|
+
/**
|
|
6667
|
+
* When the constraint's [Mode](https://developer.roblox.com/en-us/api-reference/property/AlignPosition/Mode) is set to [OneAttachment](https://developer.roblox.com/en-us/api-reference/enum/PositionAlignmentMode), it uses the [Position](https://developer.roblox.com/en-us/api-reference/property/AlignPosition/Position) as a goal to move the [Attachment0](https://developer.roblox.com/en-us/api-reference/property/Constraint/Attachment0) to.
|
|
6668
|
+
*/
|
|
6642
6669
|
Position: Vector3;
|
|
6643
6670
|
/**
|
|
6644
|
-
*
|
|
6671
|
+
* If true the constraint applies force on both Attachments to achieve the goal.
|
|
6645
6672
|
*/
|
|
6646
6673
|
ReactionForceEnabled: boolean;
|
|
6647
6674
|
/**
|
|
6648
|
-
*
|
|
6675
|
+
* Controls how quickly the constraint reaches its goal. Higher values will cause the attachment(s) to align more rapidly. Value can be between 5 and 200.
|
|
6649
6676
|
*/
|
|
6650
6677
|
Responsiveness: number;
|
|
6651
6678
|
/**
|
|
6652
|
-
*
|
|
6679
|
+
* If true, the solver reacts as quickly as possible to complete the alignment. If false, the torque is dependent on [MaxForce](https://developer.roblox.com/en-us/api-reference/property/AlignPosition/MaxForce), [MaxVelocity](https://developer.roblox.com/en-us/api-reference/property/AlignPosition/MaxVelocity), and [Responsiveness](https://developer.roblox.com/en-us/api-reference/property/AlignPosition/Responsiveness).
|
|
6653
6680
|
*/
|
|
6654
6681
|
RigidityEnabled: boolean;
|
|
6655
6682
|
}
|
|
@@ -6980,6 +7007,13 @@ interface Plane extends Constraint {
|
|
|
6980
7007
|
readonly _nominal_Plane: unique symbol;
|
|
6981
7008
|
}
|
|
6982
7009
|
|
|
7010
|
+
/** **RigidConstraint** connects the [Attachment0](https://developer.roblox.com/en-us/api-reference/property/Constraint/Attachment0) and [Attachment1](https://developer.roblox.com/en-us/api-reference/property/Constraint/Attachment1) such that the offset between them remains constant.
|
|
7011
|
+
*
|
|
7012
|
+
* It functions similarly to [WeldConstraint](https://developer.roblox.com/en-us/api-reference/class/WeldConstraint), which uses two [BasePart](https://developer.roblox.com/en-us/api-reference/class/BasePart)s directly. However, this object uses two [Attachment](https://developer.roblox.com/en-us/api-reference/class/Attachment) instead, which makes attaching
|
|
7013
|
+
* accessories to avatars easy to do without code as you can use attachments on the rig.
|
|
7014
|
+
*
|
|
7015
|
+
* In Studio, you can create a RigidConstraint in the Constraints section of the Model tab.
|
|
7016
|
+
*/
|
|
6983
7017
|
interface RigidConstraint extends Constraint {
|
|
6984
7018
|
/**
|
|
6985
7019
|
* **DO NOT USE!**
|
|
@@ -20305,6 +20339,18 @@ interface MarketplaceService extends Instance {
|
|
|
20305
20339
|
*
|
|
20306
20340
|
* The number of items the asset has been sold
|
|
20307
20341
|
*
|
|
20342
|
+
* `SaleAvailabilityLocations`
|
|
20343
|
+
*
|
|
20344
|
+
* Dictionary
|
|
20345
|
+
*
|
|
20346
|
+
* The item's [ProductLocationRestriction](https://developer.roblox.com/en-us/api-reference/enum/ProductLocationRestriction) or sale location setting (e.g. anywhere, Shop only).
|
|
20347
|
+
*
|
|
20348
|
+
* `CanBeSoldInThisGame`
|
|
20349
|
+
*
|
|
20350
|
+
* boolean
|
|
20351
|
+
*
|
|
20352
|
+
* Describes whether the asset is purchasable in the current experience.
|
|
20353
|
+
*
|
|
20308
20354
|
* **Developer Products and Game Passes**
|
|
20309
20355
|
*
|
|
20310
20356
|
* `ProductId`
|
|
@@ -24468,7 +24514,7 @@ interface PathfindingLink extends Instance {
|
|
|
24468
24514
|
Attachment0: Attachment | undefined;
|
|
24469
24515
|
Attachment1: Attachment | undefined;
|
|
24470
24516
|
IsBidirectional: boolean;
|
|
24471
|
-
|
|
24517
|
+
Label: string;
|
|
24472
24518
|
}
|
|
24473
24519
|
|
|
24474
24520
|
/** **Beta Feature** This class is currently a part of the PathfindingModifier beta feature. Eligible developers must enable the feature within Studio and functionality may change.
|
|
@@ -24496,11 +24542,11 @@ interface PathfindingModifier extends Instance {
|
|
|
24496
24542
|
/**
|
|
24497
24543
|
* **Beta Feature** This class is currently a part of the PathfindingModifier beta feature. Eligible developers must enable the feature within Studio and functionality may change.
|
|
24498
24544
|
*
|
|
24499
|
-
* For a more detailed overview of the [PathfindingService](
|
|
24545
|
+
* For a more detailed overview of the [PathfindingService](PathfindingService) and PathfindingModifiers, you can take a look at the [Pathfinding](`Articles/Pathfinding|Pathfinding`) article.
|
|
24500
24546
|
*
|
|
24501
|
-
* The name of the navigation area inside or on top of the
|
|
24547
|
+
* The name of the navigation area inside or on top of the \`Part|Part's\` volume.
|
|
24502
24548
|
*/
|
|
24503
|
-
|
|
24549
|
+
Label: string;
|
|
24504
24550
|
/**
|
|
24505
24551
|
* Determines if the parts enclosed by the modifier are traversable, even if they would normally be collided with. See [Ignoring Obstacles](https://developer.roblox.com/articles/Pathfinding#ignoring-obstacles) for details.
|
|
24506
24552
|
*/
|
|
@@ -29559,6 +29605,17 @@ interface StudioDeviceEmulatorService extends Instance {
|
|
|
29559
29605
|
readonly _nominal_StudioDeviceEmulatorService: unique symbol;
|
|
29560
29606
|
}
|
|
29561
29607
|
|
|
29608
|
+
interface StudioPublishService extends Instance {
|
|
29609
|
+
/**
|
|
29610
|
+
* **DO NOT USE!**
|
|
29611
|
+
*
|
|
29612
|
+
* This field exists to force TypeScript to recognize this as a nominal type
|
|
29613
|
+
* @hidden
|
|
29614
|
+
* @deprecated
|
|
29615
|
+
*/
|
|
29616
|
+
readonly _nominal_StudioPublishService: unique symbol;
|
|
29617
|
+
}
|
|
29618
|
+
|
|
29562
29619
|
interface StudioScriptDebugEventListener extends Instance {
|
|
29563
29620
|
/**
|
|
29564
29621
|
* **DO NOT USE!**
|
|
@@ -32307,7 +32364,7 @@ interface UserInputService extends Instance {
|
|
|
32307
32364
|
* print("Accelerometer enabled!")
|
|
32308
32365
|
* else
|
|
32309
32366
|
* print("Accelerometer not enabled!")
|
|
32310
|
-
* end
|
|
32367
|
+
* end
|
|
32311
32368
|
*
|
|
32312
32369
|
* If the device has an enabled accelerometer, you can get it's current acceleration by using the [UserInputService:GetDeviceAcceleration](https://developer.roblox.com/en-us/api-reference/function/UserInputService/GetDeviceAcceleration) function or track when the device's acceleration changes by using the [UserInputService.DeviceAccelerationChanged](https://developer.roblox.com/en-us/api-reference/event/UserInputService/DeviceAccelerationChanged) event.
|
|
32313
32370
|
*
|
|
@@ -32953,7 +33010,7 @@ interface UserInputService extends Instance {
|
|
|
32953
33010
|
*
|
|
32954
33011
|
* Name
|
|
32955
33012
|
*
|
|
32956
|
-
* Enum.UserInputType.Gamepad1-8
|
|
33013
|
+
* Enum.UserInputType.Gamepad1-8
|
|
32957
33014
|
*
|
|
32958
33015
|
* Valid KeyCodes
|
|
32959
33016
|
* --------------
|
|
@@ -32962,33 +33019,33 @@ interface UserInputService extends Instance {
|
|
|
32962
33019
|
*
|
|
32963
33020
|
* Name
|
|
32964
33021
|
*
|
|
32965
|
-
* Enum.KeyCode.ButtonX
|
|
33022
|
+
* Enum.KeyCode.ButtonX
|
|
32966
33023
|
*
|
|
32967
|
-
* Enum.KeyCode.ButtonY
|
|
33024
|
+
* Enum.KeyCode.ButtonY
|
|
32968
33025
|
*
|
|
32969
|
-
* Enum.KeyCode.ButtonA
|
|
33026
|
+
* Enum.KeyCode.ButtonA
|
|
32970
33027
|
*
|
|
32971
|
-
* Enum.KeyCode.ButtonB
|
|
33028
|
+
* Enum.KeyCode.ButtonB
|
|
32972
33029
|
*
|
|
32973
|
-
* Enum.KeyCode.ButtonR1
|
|
33030
|
+
* Enum.KeyCode.ButtonR1
|
|
32974
33031
|
*
|
|
32975
|
-
* Enum.KeyCode.ButtonL1
|
|
33032
|
+
* Enum.KeyCode.ButtonL1
|
|
32976
33033
|
*
|
|
32977
|
-
* Enum.KeyCode.ButtonR3
|
|
33034
|
+
* Enum.KeyCode.ButtonR3
|
|
32978
33035
|
*
|
|
32979
|
-
* Enum.KeyCode.ButtonL3
|
|
33036
|
+
* Enum.KeyCode.ButtonL3
|
|
32980
33037
|
*
|
|
32981
|
-
* Enum.KeyCode.ButtonStart
|
|
33038
|
+
* Enum.KeyCode.ButtonStart
|
|
32982
33039
|
*
|
|
32983
|
-
* Enum.KeyCode.ButtonSelect
|
|
33040
|
+
* Enum.KeyCode.ButtonSelect
|
|
32984
33041
|
*
|
|
32985
|
-
* Enum.KeyCode.DPadLeft
|
|
33042
|
+
* Enum.KeyCode.DPadLeft
|
|
32986
33043
|
*
|
|
32987
|
-
* Enum.KeyCode.DPadRight
|
|
33044
|
+
* Enum.KeyCode.DPadRight
|
|
32988
33045
|
*
|
|
32989
|
-
* Enum.KeyCode.DPadUp
|
|
33046
|
+
* Enum.KeyCode.DPadUp
|
|
32990
33047
|
*
|
|
32991
|
-
* Enum.KeyCode.DPadDown
|
|
33048
|
+
* Enum.KeyCode.DPadDown
|
|
32992
33049
|
*
|
|
32993
33050
|
* This can be used to check whether a specific button, such as A, is being held down. For example:
|
|
32994
33051
|
*
|
package/include/macro_math.d.ts
CHANGED
|
@@ -3,14 +3,16 @@
|
|
|
3
3
|
// MACRO MATH API
|
|
4
4
|
|
|
5
5
|
declare interface CFrame {
|
|
6
|
-
/** macro for CFrame * CFrame */
|
|
7
|
-
mul(this: CFrame, cf: CFrame): CFrame;
|
|
8
|
-
/** macro for CFrame * Vector3 */
|
|
9
|
-
mul(this: CFrame, v3: Vector3): Vector3;
|
|
10
6
|
/** macro for CFrame + Vector3 */
|
|
11
7
|
add(this: CFrame, v3: Vector3): CFrame;
|
|
12
8
|
/** macro for CFrame - Vector3 */
|
|
13
9
|
sub(this: CFrame, v3: Vector3): CFrame;
|
|
10
|
+
/** macro for CFrame * CFrame */
|
|
11
|
+
mul(this: CFrame, cf: CFrame): CFrame;
|
|
12
|
+
/** macro for CFrame * Vector3 */
|
|
13
|
+
mul(this: CFrame, v3: Vector3): Vector3;
|
|
14
|
+
/** macro for CFrame * CFrame | Vector3 */
|
|
15
|
+
mul(this: CFrame, other: CFrame | Vector3): CFrame | Vector3;
|
|
14
16
|
}
|
|
15
17
|
|
|
16
18
|
declare interface UDim {
|
|
@@ -32,14 +34,10 @@ declare interface Vector2 {
|
|
|
32
34
|
add(this: Vector2, v2: Vector2): Vector2;
|
|
33
35
|
/** macro for Vector2 - Vector2 */
|
|
34
36
|
sub(this: Vector2, v2: Vector2): Vector2;
|
|
35
|
-
/** macro for Vector2 * Vector2 */
|
|
36
|
-
mul(this: Vector2,
|
|
37
|
-
/** macro for Vector2
|
|
38
|
-
|
|
39
|
-
/** macro for Vector2 / Vector2 */
|
|
40
|
-
div(this: Vector2, v2: Vector2): Vector2;
|
|
41
|
-
/** macro for Vector2 / number */
|
|
42
|
-
div(this: Vector2, n: number): Vector2;
|
|
37
|
+
/** macro for Vector2 * Vector2 | number */
|
|
38
|
+
mul(this: Vector2, other: Vector2 | number): Vector2;
|
|
39
|
+
/** macro for Vector2 / Vector2 | number */
|
|
40
|
+
div(this: Vector2, other: Vector2 | number): Vector2;
|
|
43
41
|
}
|
|
44
42
|
|
|
45
43
|
declare interface Vector2int16 {
|
|
@@ -58,14 +56,10 @@ declare interface Vector3 {
|
|
|
58
56
|
add(this: Vector3, v3: Vector3): Vector3;
|
|
59
57
|
/** macro for Vector3 - Vector3 */
|
|
60
58
|
sub(this: Vector3, v3: Vector3): Vector3;
|
|
61
|
-
/** macro for Vector3 * Vector3 */
|
|
62
|
-
mul(this: Vector3,
|
|
63
|
-
/** macro for Vector3
|
|
64
|
-
|
|
65
|
-
/** macro for Vector3 / Vector3 */
|
|
66
|
-
div(this: Vector3, v3: Vector3): Vector3;
|
|
67
|
-
/** macro for Vector3 / number */
|
|
68
|
-
div(this: Vector3, n: number): Vector3;
|
|
59
|
+
/** macro for Vector3 * Vector3 | number */
|
|
60
|
+
mul(this: Vector3, other: Vector3 | number): Vector3;
|
|
61
|
+
/** macro for Vector3 / Vector3 | number */
|
|
62
|
+
div(this: Vector3, other: Vector3 | number): Vector3;
|
|
69
63
|
}
|
|
70
64
|
|
|
71
65
|
declare interface Vector3int16 {
|