Creating a floor building system

Oooh nice! do you mind me asking what approach you’re using? I’m curious to know!

I can’t tell from eye, but does it allow you to create a concave shape? It looks like it’s generating all these triangles from the centre. Also, do parts ever overlap if you create a concave shape? Sorry for all the questions haha, I’m just interested :slight_smile:

Yup, each triangle is made from the first point as well as the last two points placed. Although it does have some issues in certain circumstances such as overlapping triangles, as you’ve mentioned.

1 Like

Ahh okay ^^

If you ever want to change that, I’d really recommend looking into the triangulation I mentioned. It’s really awesome

1 Like

Will be sure to let you know!
Gonna take a while though ahaha

1 Like

Take a look at this? ^^

https://devforum.roblox.com/t/polygon-triangulation/274898

If this is what you were looking for I’m happy to open source it. Keep up the cool developing work! :smiley:

1 Like

How were you able to do that :disappointed_relieved: I managed to get the triangles working, but can’t do more than 4 points :frowning:

Can u teach me how to do like that, I still confuse. :sweat_smile:

I’m very sorry to be notifying you all about a 2-year-old topic, but if you still have to code to this can I see it? It looks very cool and I want to learn more about triangulation

1 Like

Hello,
How did you make grid in your video? I tryed to make grid too but it black but my grid is white.

My grid:

Thanks for any help

Change the Color3 value to (0,0,0)
image

1 Like

I have color set to 255,255,255
image

and my grid image:

Sorry for bumping this post, considering it’s so old, but does anyone have any ideas for collision detection with the floor?

Example: if I start placing a floor I am able to cross over the edges of itself.

It’s there a good way to detect when that happens and then I could connect that to my failed placement function?