Help With Biome Detection!

I’ve wanted to try to make a Script detect biomes. But the thing is I don’t really know how to even do that!

I was thinking of placing parts. But it would take forever and make the game more laggier!

I haven’t start scripting the system, Because I don’t know how to start this!
Anybody help me where to start?

1 Like

There are some really fast algorithms for finding a point inside of a polygon.
Google ‘point in polygon lua’ and see if you get any results.
You can then map out these polygon areas and detect if a player is inside of them or not.

You can raycast directly down from the player’s character and use the material to determine the biome. That solution will likely need you to ignore water since it looks like multiple biomes have water in your map. I would recommend going with the solution mentioned above if your map is too complex (in example: there is a lot of material blending).

1 Like

You can use Region3.new() to detect where the player is present.

isnt that like the same as using floormaterial?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.