Hello! Sorry if the title did not make sense. Essentially, I have a flat, nearly 2D like part which acts as the area I want the fire to randomly spawn on. (The fire is linked to an invisible part that sets its position) However, I have 2 problems: Firstly, I only know how to make the fire spawn randomly on a squarish base (just generate a random x and z vector from the parts center). However, I am using a circular base, so I have no idea how to make the fire spawn on it randomly. Secondly, I want multiple fires to cover the part, but I’m afraid that if I just randomly generate a position for the fire it could cause the fires to all sit at one position, instead of covering the entire part. How would I solve this?
If I understood you correctly then I’m pretty sure that you have to use Poisson Disk Sampling. I’m pretty sure someone made a module for this so look for that if you don’t want to be bothered with the math.
After some searching, I think I know how to use the Posisson Disk Sampling method or a slight modification of it. My problem now would be defining the area the fires can spawn on. Normally on a squarish/rectangle-like base defining the area would be easy, just take the length and breadth of the base. However, what if the shape was a circle in my case, or a unique shape?
The Poisson Disk Sampling only works in circles anyways so you don’t really need to define anything except for the radius.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.