Creating a UniversalRegion
Universal Regions are the home to most of the important methods. Learn how to make one!
Last updated
Universal Regions are the home to most of the important methods. Learn how to make one!
Last updated
The API is documented. You can view the code and most up-to-date code and new methods here
UniversalRegion abstract
UniversalRegion is an abstract class type. Therefore you cannot create an instance of it directly. To create your own universal region class type you have to use the child class Region3D
Furthermore, the Region3D class requires the parameters: World, Vector...
So, to create a region based off of a simple min and max point, you would write the following code:
To create a polygon region, you need to specify all the points when creating the Region3D
object. It's important that you input the points in the correct path order to create the object. Otherwise instead of looking like this:
It will look like this:
Example Code:
The UniversalRegion has a Builder Pattern. This means you can string along your setters in one long path.