Skip to content

Commit c19eafd

Browse files
Initial migration from Vector3 to vector
1 parent 48933cd commit c19eafd

File tree

40 files changed

+111
-111
lines changed

40 files changed

+111
-111
lines changed

content/en-us/characters/pathfinding.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ local player = Players.LocalPlayer
145145
local character = player.Character
146146
local humanoid = character:WaitForChild("Humanoid")
147147

148-
local TEST_DESTINATION = Vector3.new(100, 0, 100)
148+
local TEST_DESTINATION = vector.new(100, 0, 100)
149149

150150
local waypoints
151151
local nextWaypointIndex
@@ -213,7 +213,7 @@ local player = Players.LocalPlayer
213213
local character = player.Character
214214
local humanoid = character:WaitForChild("Humanoid")
215215

216-
local TEST_DESTINATION = Vector3.new(100, 0, 100)
216+
local TEST_DESTINATION = vector.new(100, 0, 100)
217217

218218
local waypoints
219219
local nextWaypointIndex
@@ -245,7 +245,7 @@ local player = Players.LocalPlayer
245245
local character = player.Character
246246
local humanoid = character:WaitForChild("Humanoid")
247247

248-
local TEST_DESTINATION = Vector3.new(100, 0, 100)
248+
local TEST_DESTINATION = vector.new(100, 0, 100)
249249

250250
local waypoints
251251
local nextWaypointIndex
@@ -286,7 +286,7 @@ local player = Players.LocalPlayer
286286
local character = player.Character
287287
local humanoid = character:WaitForChild("Humanoid")
288288

289-
local TEST_DESTINATION = Vector3.new(100, 0, 100)
289+
local TEST_DESTINATION = vector.new(100, 0, 100)
290290

291291
local waypoints
292292
local nextWaypointIndex
@@ -358,7 +358,7 @@ local player = Players.LocalPlayer
358358
local character = player.Character
359359
local humanoid = character:WaitForChild("Humanoid")
360360

361-
local TEST_DESTINATION = Vector3.new(100, 0, 100)
361+
local TEST_DESTINATION = vector.new(100, 0, 100)
362362

363363
local waypoints
364364
local nextWaypointIndex
@@ -525,7 +525,7 @@ To create a `Class.PathfindingLink` using this example:
525525
local character = player.Character
526526
local humanoid = character:WaitForChild("Humanoid")
527527

528-
local TEST_DESTINATION = Vector3.new(228.9, 17.8, 292.5)
528+
local TEST_DESTINATION = vector.new(228.9, 17.8, 292.5)
529529

530530
local waypoints
531531
local nextWaypointIndex

content/en-us/chat/in-experience-text-chat.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ local function getPositionFromUserId(userId: number)
8383
end
8484

8585
-- Return a default position if the player or character cannot be found
86-
return Vector3.zero
86+
return vector.zero
8787
end
8888

8989
-- Set the callback for the general channel to control message delivery

content/en-us/education/build-it-play-it-island-of-move/animating-parts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ local inTween = false
206206

207207
-- Customizable variables
208208
local TWEEN_TIME = 1
209-
local TWEEN_SCALE = Vector3.zero
209+
local TWEEN_SCALE = vector.zero
210210

211211
-- Tween variables
212212
local tweenInfo = TweenInfo.new(

content/en-us/environment/global-wind.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ local gustCycleDelay = 5 -- Max duration between gust cycles in seconds
5050
local gustCycleDuration = 3.5 -- Duration of each gust cycle in seconds
5151

5252
-- During each gust cycle, a portion of "gust" will be added to "baseWind" in a ramped fashion
53-
local baseWind = Vector3.new(5, 0, 2) -- Base wind speed and direction
54-
local gust = Vector3.new(25, 0, 10) -- Gust speed and direction
53+
local baseWind = vector.new(5, 0, 2) -- Base wind speed and direction
54+
local gust = vector.new(25, 0, 10) -- Gust speed and direction
5555
local gustIntervals = 100 -- Number of iterations used to calculate each gust interval
5656
local dg = gustCycleDuration / gustIntervals
5757
local dgf = dg / gustCycleDuration

content/en-us/luau/tuples.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ A **tuple** is a list of values. Many [methods](./functions.md#methods) and [cal
1010
If a [method](./functions.md#methods) or [callback](./functions.md#callbacks) accepts a tuple as a parameter, then it accepts multiple values. For example, the API Reference shows that the `Class.BindableFunction:Invoke()` method accepts a "Tuple" as a parameter, so it accepts multiple arguments.
1111

1212
```lua
13-
BindableFunction:Invoke(1, true, "string", Vector3.new(0, 0, 0))
13+
BindableFunction:Invoke(1, true, "string", vector.new(0, 0, 0))
1414
```
1515

1616
## Returns

content/en-us/parts/terrain.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ To import a heightmap and optional colormap:
471471
You can script terrain generation using the `Class.Terrain` class. For example, to create terrain with grass material that fills a volume, you can use methods such as `Class.Terrain:FillBall()|FillBall()`, `Class.Terrain:FillBlock()|FillBlock()`, `Class.Terrain:FillCylinder()|FillCylinder()`, `Class.Terrain:FillRegion()|FillRegion()`, or `Class.Terrain:FillWedge()|FillWedge()`.
472472

473473
```lua title='Fill Block Volume'
474-
workspace.Terrain:FillBlock(CFrame.new(0, 0, 0), Vector3.new(4, 4, 4), Enum.Material.Grass)
474+
workspace.Terrain:FillBlock(CFrame.new(0, 0, 0), vector.new(4, 4, 4), Enum.Material.Grass)
475475
```
476476

477477
## Large-Scale Editing

content/en-us/production/monetization/engagement-based-payouts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ local Players = game:GetService("Players")
7575
local teleporter = script.Parent
7676
local showModal = true
7777

78-
local TELEPORT_POSITION = Vector3.new(1200, 200, 60)
78+
local TELEPORT_POSITION = vector.new(1200, 200, 60)
7979

8080
-- Teleport character to exclusive area
8181
local function teleportPlayer(player)

content/en-us/reference/engine/classes/BillboardGui.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,8 +442,8 @@ properties:
442442
part.Parent = workspace
443443
444444
-- Move camera next to part. Wait a bit and then move camera
445-
local cameraPosition0 = part.Position + Vector3.new(0, 0, 10)
446-
local cameraPosition1 = part.Position + Vector3.new(0, 0, 20)
445+
local cameraPosition0 = part.Position + vector.new(0, 0, 10)
446+
local cameraPosition1 = part.Position + vector.new(0, 0, 20)
447447
camera.CFrame = CFrame.lookAt(cameraPosition0, part.Position)
448448
449449
-- Contents of billboard will be visible here

content/en-us/reference/engine/classes/BodyAngularVelocity.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ properties:
3737
second) into the desired [angular velocity][3] (radians per second). For
3838
example: Setting
3939
`Class.BodyAngularVelocity.AngularVelocity|AngularVelocity` to
40-
`Vector3.new(0, 1, 0) * math.rad(360)` ≈ `Vector3.new(0, 6.283, 0)` will
40+
`vector.new(0, 1, 0) * math.rad(360)` ≈ `vector.new(0, 6.283, 0)` will
4141
cause a part to spin around the Y axis once per second.
4242
code_samples:
4343
type: Vector3

content/en-us/reference/engine/classes/Camera.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,17 +65,17 @@ properties:
6565
The most intuitive way to position and orient the `Class.Camera` is by
6666
using the `Datatype.CFrame.lookAt()` constructor. In the following
6767
example, the `Class.Camera` is positioned at
68-
`Datatype.Vector3.new(0, 10, 0)` and is oriented to be looking towards
69-
`Datatype.Vector3.new(10, 0, 0)`.
68+
`Datatype.Vector3|vector.new(0, 10, 0)` and is oriented to be looking towards
69+
`Datatype.Vector3|vector.new(10, 0, 0)`.
7070
7171
```lua
7272
local Workspace = game:GetService("Workspace")
7373
7474
local camera = Workspace.CurrentCamera
7575
camera.CameraType = Enum.CameraType.Scriptable
7676
77-
local pos = Vector3.new(0, 10, 0)
78-
local lookAtPos = Vector3.new(10, 0, 0)
77+
local pos = vector.new(0, 10, 0)
78+
local lookAtPos = vector.new(10, 0, 0)
7979
8080
Workspace.CurrentCamera.CFrame = CFrame.lookAt(pos, lookAtPos)
8181
```
@@ -104,7 +104,7 @@ properties:
104104
character = player.CharacterAdded:Wait()
105105
end
106106
107-
local pos = camera.CFrame * Vector3.new(0, 20, 0)
107+
local pos = camera.CFrame * vector.new(0, 20, 0)
108108
local lookAtPos = character.PrimaryPart.Position
109109
local targetCFrame = CFrame.lookAt(pos, lookAtPos)
110110
@@ -715,8 +715,8 @@ methods:
715715
local camera = Workspace.CurrentCamera
716716
717717
local castPoints = {
718-
Vector3.new(0, 10, 0),
719-
Vector3.new(0, 15, 0)
718+
vector.new(0, 10, 0),
719+
vector.new(0, 15, 0)
720720
}
721721
local ignoreList = {}
722722
@@ -810,7 +810,7 @@ methods:
810810
local function getActualRoll()
811811
local camera = workspace.CurrentCamera
812812
813-
local trueUp = Vector3.new(0, 1, 0)
813+
local trueUp = vector.new(0, 1, 0)
814814
local cameraUp = camera:GetRenderCFrame().upVector
815815
816816
return math.acos(trueUp:Dot(cameraUp))
@@ -1291,7 +1291,7 @@ methods:
12911291
12921292
local camera = Workspace.CurrentCamera
12931293
1294-
local worldPoint = Vector3.new(0, 10, 0)
1294+
local worldPoint = vector.new(0, 10, 0)
12951295
local vector, onScreen = camera:WorldToScreenPoint(worldPoint)
12961296
12971297
local screenPoint = Vector2.new(vector.X, vector.Y)
@@ -1350,7 +1350,7 @@ methods:
13501350
13511351
local camera = Workspace.CurrentCamera
13521352
1353-
local worldPoint = Vector3.new(0, 10, 0)
1353+
local worldPoint = vector.new(0, 10, 0)
13541354
local vector, onScreen = camera:WorldToViewportPoint(worldPoint)
13551355
13561356
local viewportPoint = Vector2.new(vector.X, vector.Y)

0 commit comments

Comments
 (0)