|
| 20 Jun 2014 06:47 PM |
| I want to get the largest value in a vector3. How do I do this? |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2014 06:49 PM |
| A vector3 is a position. Explain better... You want the highest of the 3 numbers X,Y,Z, or comparing distances of 2 objects relative to position, or what is it you want? |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2014 06:50 PM |
value = Vector3.new(5,10,25) function RetrieveLargestNumberInVector3(vector3) return math.max(vector3.X,vector3.Y,vector3.Z) end
print(RetrieveLargestNumberInVector3(value))
>25 |
|
|
| Report Abuse |
|
|
| |
|
|
| 20 Jun 2014 06:57 PM |
| It should be 2048 if you mean size |
|
|
| Report Abuse |
|
|