@rbxts/types 1.0.672 → 1.0.674
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/roblox.d.ts +30 -6
- package/package.json +1 -1
package/include/roblox.d.ts
CHANGED
|
@@ -1635,10 +1635,26 @@ interface PathWaypoint {
|
|
|
1635
1635
|
* @deprecated
|
|
1636
1636
|
*/
|
|
1637
1637
|
readonly _nominal_PathWaypoint: unique symbol;
|
|
1638
|
+
/**
|
|
1639
|
+
* The action to perform at this waypoint.
|
|
1640
|
+
*/
|
|
1638
1641
|
readonly Action: Enum.PathWaypointAction;
|
|
1642
|
+
/**
|
|
1643
|
+
* The 3D position of this waypoint.
|
|
1644
|
+
*/
|
|
1639
1645
|
readonly Position: Vector3;
|
|
1646
|
+
/**
|
|
1647
|
+
* The name of the navigation area that generates this waypoint. You can use PathwayPoint.Label to decide the custom
|
|
1648
|
+
* action to take to reach the waypoint. PathfindingModifier and Material each have a Label. Automatic jump links
|
|
1649
|
+
* have "Jump" as their Label.
|
|
1650
|
+
*/
|
|
1651
|
+
readonly Label: string;
|
|
1652
|
+
}
|
|
1653
|
+
interface PathWaypointConstructor {
|
|
1654
|
+
new (): PathWaypoint;
|
|
1655
|
+
new (position: Vector3, action?: Enum.PathWaypointAction, label?: string): PathWaypoint;
|
|
1640
1656
|
}
|
|
1641
|
-
|
|
1657
|
+
|
|
1642
1658
|
declare const PathWaypoint: PathWaypointConstructor;
|
|
1643
1659
|
|
|
1644
1660
|
// PhysicalProperties
|
|
@@ -2231,11 +2247,19 @@ declare function warn(...params: Array<unknown>): void;
|
|
|
2231
2247
|
|
|
2232
2248
|
// math functions
|
|
2233
2249
|
declare namespace math {
|
|
2234
|
-
/**
|
|
2235
|
-
*
|
|
2236
|
-
*
|
|
2237
|
-
|
|
2238
|
-
|
|
2250
|
+
/**
|
|
2251
|
+
* Returns a perlin noise value. The returned value is most often between the range [-1, 1].
|
|
2252
|
+
*
|
|
2253
|
+
* The returned value is sometimes will be outside of the range [-1,1], so if the interval is critical to you,
|
|
2254
|
+
* you should use `math.clamp(noise, -1, 1)` on the output.
|
|
2255
|
+
*
|
|
2256
|
+
* The function uses a perlin noise algorithm to assign fixed values to coordinates.
|
|
2257
|
+
* For example, `math.noise(1.158, 5.723)` will always return `0.48397532105446` and `math.noise(1.158, 6)` will always return `0.15315161645412`.
|
|
2258
|
+
*
|
|
2259
|
+
* If x, y and z are all integers, the return value will be 0. For fractional values of x, y and z, the return value will gradually fluctuate between -0.5 and 0.5.
|
|
2260
|
+
* For coordinates that are close to each other, the return values will also be close to each other.
|
|
2261
|
+
*/
|
|
2262
|
+
function noise(x: number, y?: number, z?: number): number;
|
|
2239
2263
|
/** Returns a number between min and max, inclusive. */
|
|
2240
2264
|
function clamp(n: number, min: number, max: number): number;
|
|
2241
2265
|
}
|