Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

What Does Vector3.new means?

Asked by 10 years ago

For Example: script.Parent.RotVelocity = Vertor3.new(-10,0,0)

3 answers

Log in to vote
3
Answered by
BlueTaslem 18071 Moderation Voter Administrator Community Moderator Super Administrator
10 years ago

Vector3.new is a function which creates a new Vector3.

In math, a Vector is something with length and direction. It's usually represented as a coordinate, e.g., (4 left, 3 up, 7 backward).

A vector in the elementary sense is an ordered list of numbers; a "Vector3" then is an ordered list of 3 numbers. We call these numbers, in order, x y and z. These three numbers are the parameters to Vector3.new(x, y, z)

Since Vectors define a point in 3D space, we use it for Position of parts.

As well, as some components of CFrame which augments a Vector3 with several other values to define the orientation (rotation) of an object.

0
Thank For Helping :D Wilbert026 10 — 10y
Ad
Log in to vote
0
Answered by 10 years ago

Vector3.new sets the new Vector3 value, which is for positioning and CFrame.

0
Thank You! Wilbert026 10 — 10y
Log in to vote
0
Answered by
Vividex 162
10 years ago

Vector3.new is the way to position a GUI (CFrame.new is for parts) using the basic math figures, x, y, and z.

Answer this question