sncplay42
|
  |
| Joined: 27 Nov 2008 |
| Total Posts: 11891 |
|
| |
|
|
| 30 Oct 2011 12:37 PM |
| I'm guessing they just forgot about it... |
|
|
| Report Abuse |
|
|
LocalChum
|
  |
| Joined: 04 Mar 2011 |
| Total Posts: 6906 |
|
| |
|
| |
|
sncplay42
|
  |
| Joined: 27 Nov 2008 |
| Total Posts: 11891 |
|
|
| 30 Oct 2011 12:49 PM |
Now I remember why I was using those tables to represent regions.
Time to switch back to them |
|
|
| Report Abuse |
|
|
sdfgw
|
  |
 |
| Joined: 08 Jan 2009 |
| Total Posts: 41681 |
|
|
| 30 Oct 2011 01:00 PM |
rule 1 of roblox
never trust anything they make |
|
|
| Report Abuse |
|
|
Spectrumw
|
  |
| Joined: 04 Aug 2009 |
| Total Posts: 13510 |
|
|
| 30 Oct 2011 01:23 PM |
But it is pretty easy to get the two vectors D:
function GetVectors(Rg3) local x, y, z = Rg3.Size return Rg3.CFrame.p - Vector3.new(x/2, y/2, z/2), Rg3.CFrame.p + Vector3.new(x/2, y/2, z/2) end
min, max = GetVectors(Region3.new(Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))) |
|
|
| Report Abuse |
|
|
NXTBoy
|
  |
| Joined: 25 Aug 2008 |
| Total Posts: 4533 |
|
|
| 30 Oct 2011 01:25 PM |
There, I fixed it:
local oldRegion3 = Region3 Region3 = {} Region3.new = function(corner1, corner2) local min = Vector3.new( math.min(corner1.X, corner2.X), math.min(corner1.Y, corner2.Y), math.min(corner1.Z, corner2.Z) ) local max = Vector3.new( math.max(corner1.X, corner2.X), math.max(corner1.Y, corner2.Y), math.max(corner1.Z, corner2.Z) ) return setmetatable({ From = min, To = max }, { __index = oldRegion3.new(From, To) }) end |
|
|
| Report Abuse |
|
|