generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Vector3

Previous Thread :: Next Thread 
ninja900500 is not online. ninja900500
Joined: 27 Sep 2008
Total Posts: 2324
17 Feb 2016 03:06 PM
Do all vector3's start from the same origin at 0, 0, 0?
Report Abuse
128Gigabytes is not online. 128Gigabytes
Joined: 17 Apr 2014
Total Posts: 3616
17 Feb 2016 03:07 PM
This question makes no sense a vector3 is just a set of 3 numbers, an x y and z

Numbers have no origin.
Report Abuse
ninja900500 is not online. ninja900500
Joined: 27 Sep 2008
Total Posts: 2324
17 Feb 2016 03:07 PM
I thought a vector is a magnitude and direction.
Report Abuse
128Gigabytes is not online. 128Gigabytes
Joined: 17 Apr 2014
Total Posts: 3616
17 Feb 2016 03:13 PM
Well its not

A vector3 value is just a fancy way to store 3 numbers


And in roblox is used for things like position, size, scale, offset, and a bunch of other properties.

http://wiki.roblox.com/index.php?title=Magnitude
Report Abuse
ninja900500 is not online. ninja900500
Joined: 27 Sep 2008
Total Posts: 2324
17 Feb 2016 03:22 PM
Wait so why does the "dot product" section of this page describes the two vectors as "directions" rather than "positions"?

http://wiki.roblox.com/index.php?title=Vector3
Report Abuse
imaginaryUberlyuber is not online. imaginaryUberlyuber
Joined: 15 Jul 2012
Total Posts: 208
17 Feb 2016 03:26 PM
You are WAY overcomplicating things.

You know how, in school, you learned how to use a coordinate plane, like (x,y)? Well a Vector3 is the exact same thing, just with three places, like (x,y,z).
Report Abuse
feqi is not online. feqi
Joined: 15 Feb 2016
Total Posts: 35
17 Feb 2016 03:28 PM
Because vectors have directions and magnitudes
Report Abuse
ninja900500 is not online. ninja900500
Joined: 27 Sep 2008
Total Posts: 2324
17 Feb 2016 03:34 PM
So vector3 is just a position?
Report Abuse
feqi is not online. feqi
Joined: 15 Feb 2016
Total Posts: 35
17 Feb 2016 03:35 PM
no, vector3 IS a vector so it is the direction and magnitude from the origin as you said.
Report Abuse
parkiet3 is not online. parkiet3
Joined: 16 Jul 2011
Total Posts: 832
17 Feb 2016 03:36 PM
A vector is a vector drawn from the origin to a certain point (x,y,z). Since the origin is always (0,0,0) it has no senso to add this to the arguments.
Report Abuse
ninja900500 is not online. ninja900500
Joined: 27 Sep 2008
Total Posts: 2324
17 Feb 2016 03:41 PM
So a vector3 can be used as a direction or a position?
Report Abuse
feqi is not online. feqi
Joined: 15 Feb 2016
Total Posts: 35
17 Feb 2016 03:45 PM
Yes, if you want pure direction use a unit vector
also keep in mind, I was talking about vectors in standard position because by definition, vectors do not have an exact position
Report Abuse
parkiet3 is not online. parkiet3
Joined: 16 Jul 2011
Total Posts: 832
17 Feb 2016 03:45 PM
A vector is a direction yh, relative to the origin and easy to calc with, that's why they also use it as positions
Report Abuse
ninja900500 is not online. ninja900500
Joined: 27 Sep 2008
Total Posts: 2324
17 Feb 2016 03:47 PM
so is a lookvector just a direction or could it be used as a position too?
Report Abuse
feqi is not online. feqi
Joined: 15 Feb 2016
Total Posts: 35
17 Feb 2016 03:48 PM
It's a unit vector so it is direction
Report Abuse
ninja900500 is not online. ninja900500
Joined: 27 Sep 2008
Total Posts: 2324
17 Feb 2016 03:49 PM
So to break it down, a vector3 is a position in 3d space that has a magnitude and direction?
Report Abuse
ninja900500 is not online. ninja900500
Joined: 27 Sep 2008
Total Posts: 2324
17 Feb 2016 03:51 PM
Oh and I get the dot product thing now, they put ".unit" after the vectors just to get the direction, right?
Report Abuse
feqi is not online. feqi
Joined: 15 Feb 2016
Total Posts: 35
17 Feb 2016 03:52 PM
"So to break it down, a vector3 is a position in 3d space that has a magnitude and direction?"

It is a vector in standard position (starts at the origin) that has magnitude and direction. If you think of it in 3d Cartesian coordinates, think of an arrow that starts from the origin and goes reaches to the specified point. It has direction and magnitude so that would be a vector in standard position.
Report Abuse
feqi is not online. feqi
Joined: 15 Feb 2016
Total Posts: 35
17 Feb 2016 03:53 PM
"Oh and I get the dot product thing now, they put ".unit" after the vectors just to get the direction, right?"

unit vectors give you the direction, dot product is mostly used for finding the angle between two vectors
Report Abuse
ninja900500 is not online. ninja900500
Joined: 27 Sep 2008
Total Posts: 2324
17 Feb 2016 04:01 PM
"It is a vector in standard position (starts at the origin) that has magnitude and direction. If you think of it in 3d Cartesian coordinates, think of an arrow that starts from the origin and goes reaches to the specified point. It has direction and magnitude so that would be a vector in standard position."

So is the vector the specific position or the arrow? What represents it?
Report Abuse
feqi is not online. feqi
Joined: 15 Feb 2016
Total Posts: 35
17 Feb 2016 04:06 PM
"So is the vector the specific position or the arrow? What represents it?"

the vector tells us the direction to the head of the arrow and the magnitude from the origin.

<0,0,5> tells us that the direction will be <0,0,1> (unit vector) and that the magnitude is 5.
Report Abuse
checkplate is not online. checkplate
Joined: 05 Jan 2016
Total Posts: 1379
17 Feb 2016 04:16 PM
Think of vectors as clay you stretch out in three deminsions. Given X=33,Y=55, Z=-22 that would translate to stretching your clay down right 33 units, up 55 units, and down 22 units. So that when you're done stretching the clay it is 'pointing' to the vector 33,55,-22.
Report Abuse
ninja900500 is not online. ninja900500
Joined: 27 Sep 2008
Total Posts: 2324
17 Feb 2016 04:21 PM
So when we're talking about vectors and vector3s are we talking about the same thing?
Report Abuse
feqi is not online. feqi
Joined: 15 Feb 2016
Total Posts: 35
17 Feb 2016 04:22 PM
vector3s are vectors
Report Abuse
ninja900500 is not online. ninja900500
Joined: 27 Sep 2008
Total Posts: 2324
17 Feb 2016 04:28 PM
thanks
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image