Dodeca
|
  |
| Joined: 11 Sep 2011 |
| Total Posts: 13649 |
|
|
| 20 Jan 2016 11:11 PM |
I don't really comprehend the wiki
|
|
|
| Report Abuse |
|
|
|
| 20 Jan 2016 11:16 PM |
| Do you know what a lookVector is |
|
|
| Report Abuse |
|
|
Dodeca
|
  |
| Joined: 11 Sep 2011 |
| Total Posts: 13649 |
|
| |
|
Casualist
|
  |
| Joined: 26 Jun 2014 |
| Total Posts: 4443 |
|
|
| 20 Jan 2016 11:18 PM |
Vector3.unit just makes the total length of the vector 1.
I.e.
print(Vector3.new(5,0,0)) > 1, 0, 0 |
|
|
| Report Abuse |
|
|
Dodeca
|
  |
| Joined: 11 Sep 2011 |
| Total Posts: 13649 |
|
|
| 20 Jan 2016 11:20 PM |
So what could it be useful for
|
|
|
| Report Abuse |
|
|
|
| 20 Jan 2016 11:20 PM |
It basically gives you a lookVector looking at the direction of the Vector you got the unit from
print(Vector3.new(10, 10, 10).unit) --[[> 0.577350199, 0.577350199, 0.577350199]]
Also the wiki saying its magnitude of 1 just means
0.577350199, 0.577350199, 0.577350199 is exactly 1 stud distance from 0, 0, 0, therefor it could be used as a lookVector from 0, 0, 0 to the vector you used |
|
|
| Report Abuse |
|
|