vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 02 Dec 2013 08:06 PM |
3k almost, responded a looot, look at page 2&3)
Also my real question;
CN you replace a vector 3 value by k for ex that is equal to a vector3 value? |
|
|
| Report Abuse |
|
|
|
| 02 Dec 2013 08:07 PM |
"CN you replace a vector 3 value by k for ex that is equal to a vector3 value?"
I don't understand the question, could you please elaborate? |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 02 Dec 2013 08:09 PM |
K = (66,67,67)
L.position = vector3.new(k) |
|
|
| Report Abuse |
|
|
|
| 02 Dec 2013 08:12 PM |
K = (66,67,67)
L.position = vector3.new(k)
--
No, that will not work, as you can only hold one value within a variable. On top of that, K ~= k, and Vector isn't capitalized. |
|
|
| Report Abuse |
|
|
WebGL3D
|
  |
| Joined: 04 Sep 2013 |
| Total Posts: 28311 |
|
|
| 02 Dec 2013 08:12 PM |
K = {66,67,67} L.Position = Vector3.new(unpack(K))
~ 1Topcop ~ Java3D ~ WebGL3D ~ Hoard3D ~ Thug3D |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
| |
|
WebGL3D
|
  |
| Joined: 04 Sep 2013 |
| Total Posts: 28311 |
|
|
| 02 Dec 2013 08:16 PM |
unpack is a built in function that returns each automatically indexed value of a table. So..
a,b,c = unpack({1,2,3}) -- a would be 1, b would be 2, c would be 3
x,y,z = unpack({"a","b"}) -- x would be "a", y would be "b", z would be nil, there's no third value in that table
~ 1Topcop ~ Java3D ~ WebGL3D ~ Hoard3D ~ Thug3D |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
| |
|