|
| 17 Feb 2016 03:06 PM |
| Do all vector3's start from the same origin at 0, 0, 0? |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 17 Feb 2016 03:07 PM |
| I thought a vector is a magnitude and direction. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| Joined: 15 Feb 2016 |
| Total Posts: 35 |
|
|
| 17 Feb 2016 03:28 PM |
| Because vectors have directions and magnitudes |
|
|
| Report Abuse |
|
|
|
| 17 Feb 2016 03:34 PM |
| So vector3 is just a position? |
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|
|
| 17 Feb 2016 03:41 PM |
| So a vector3 can be used as a direction or a position? |
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|
|
| 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
|
  |
| Joined: 15 Feb 2016 |
| Total Posts: 35 |
|
|
| 17 Feb 2016 03:48 PM |
| It's a unit vector so it is direction |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| Joined: 15 Feb 2016 |
| Total Posts: 35 |
|
| |
|
| |
|