Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Empty spaces between wedges?

Asked by 8 years ago

I have had a problem with this:
http://gyazo.com/d62e574ca84f1192e6144ee141d1f23f

My calculations went wrong when trying to make a world map, so there are empty spaces between wedges and it is a pain to fix them

I have tried every way of making it quicker by reisizing, but its just too much work.

So my question is, is there any way to stick them together or fix their places?

0
We can't know what went wrong with your implementation if we can't see your code. XAXA 1569 — 8y
1
It doesnt have a code, just is there a way to change something in the properties so they dont have empty spaces between? aaron8888 3 — 8y
1
They look unanchored to be honest. ScriptGuider 5640 — 8y

1 answer

Log in to vote
1
Answered by 8 years ago

They're either unanchored, or your code is wrong. Looks like the latter.

Make sure you're CFraming the parts and not just changing their Position. Also, anchor them before you CFrame them into position. Make sure that you're also rotating the wedges with CFrame.Angles, and you're not just setting the Rotation. Use math.rad() to convert from degrees to radians, which is what CFrame.Angles uses.

E.g: wedge.CFrame = CFrame.new(10, 5, 5)*CFrame.Angles(0, math.rad(90), 0) Not wedge.Position = Vector3.new(10, 5, 5) wedge.Rotation = Vector3.new(0, 90, 0)

Ad

Answer this question