<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.starfall.wtf/index.php?action=history&amp;feed=atom&amp;title=Vector3</id>
	<title>Vector3 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.starfall.wtf/index.php?action=history&amp;feed=atom&amp;title=Vector3"/>
	<link rel="alternate" type="text/html" href="https://wiki.starfall.wtf/index.php?title=Vector3&amp;action=history"/>
	<updated>2026-07-28T16:17:09Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.starfall.wtf/index.php?title=Vector3&amp;diff=172&amp;oldid=prev</id>
		<title>PRG: Created page with &quot;{{CatUp|Data Types}} Vector3 handles inputs that need three values. It&#039;s not a hard concept once you get passed that.  Vector3 has three values, an X ordinate, Y ordinate and Z ordinate. It represents a position in 3D space, just as a coordinate plane that you use in school, and can be in anything that needs to have a set of three values in order to function. (For example an object position, size, et cetera).    All Property|...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.starfall.wtf/index.php?title=Vector3&amp;diff=172&amp;oldid=prev"/>
		<updated>2024-12-09T21:50:02Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{CatUp|Data Types}} Vector3 handles inputs that need three values. It&amp;#039;s not a hard concept once you get passed that.  Vector3 has three values, an X ordinate, Y ordinate and Z ordinate. It represents a position in 3D space, just as a coordinate plane that you use in school, and can be in anything that needs to have a set of three values in order to function. (For example an object &lt;a href=&quot;/index.php/Position_(Property)&quot; title=&quot;Position (Property)&quot;&gt;position&lt;/a&gt;, &lt;a href=&quot;/index.php?title=Size_(Property)&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Size (Property) (page does not exist)&quot;&gt;size&lt;/a&gt;, et cetera).    All Property|...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{CatUp|Data Types}}&lt;br /&gt;
Vector3 handles inputs that need three values. It&amp;#039;s not a hard concept once you get passed that.&lt;br /&gt;
&lt;br /&gt;
Vector3 has three values, an X ordinate, Y ordinate and Z ordinate. It represents a position in 3D space, just as a coordinate plane that you use in school, and can be in anything that needs to have a set of three values in order to function. (For example an object [[Position (Property)|position]], [[Size (Property)|size]], et cetera). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
All [[Property|properties] are read-only. However, they can be changed via [[Script|scripts]].&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Property !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt; || number ||| the x-coordinate&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt; || number ||| the y-coordinate&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;z&amp;lt;/code&amp;gt; || number ||| the z-coordinate&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;unit&amp;lt;/code&amp;gt; || Vector3 ||| a normalized copy of the vector&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;magnitude&amp;lt;/code&amp;gt;|| number ||| the length of the vector&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Vector3==&lt;br /&gt;
Vector3 is three values. An X (Horizontal), a Y (Vertical), and a Z (Depth). Learning Vector3 is the first step to learning how to move a brick and/or a character.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
A brick is on the position line of 0,10,0.  It has three vectors (x=0, y=10, z=0).  Now let&amp;#039;s convert it to Vector3.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local pos = Vector3.new(0,10,0)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You don&amp;#039;t need to put it in a variable, it is just that a variable is much easier to use.  I will teach you about &amp;quot;Vector3.new&amp;quot; later on.  You see the term &amp;quot;Vector3.new&amp;quot;, then 3 numbers seperated by commas inside two parentheses.  The &amp;quot;0&amp;quot; is the x vector, the &amp;quot;10&amp;quot; is the y vector, and the other &amp;quot;0&amp;quot; is the z vector (Vector3.new(x, y, z).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Creating New Vectors===&lt;br /&gt;
So now you want to teleport bricks?  Here, we&amp;#039;ll talk about &amp;quot;Vector3.new&amp;quot;. When changing an object&amp;#039;s position, you either use [[CFrame]] or &amp;quot;Vector3.new&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local brick = workspace.Part&lt;br /&gt;
brick.Position = Vector3.new(0,10,0) --Sets the part&amp;#039;s x, y, and z coordinates.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In that example, we have Vector3.new(0,10,0), where X=0, Y=10, and Z=0. &lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
*[[CFrame]]&lt;br /&gt;
*[[Part]]&lt;br /&gt;
*[[Properties]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Data Types]]&lt;/div&gt;</summary>
		<author><name>PRG</name></author>
	</entry>
</feed>