Placement Area
Last updated
Last updated
Object placement offers 4 options on area validation for objects placement:
Anywhere: obviously objects can be placed anywhere and are not restricted by any game bounds other than valid ground.
Box: where area is defined by position and size of all 3 axis.
Sphere: where area is defined by position and radius.
Custom: implement a custom behaviour for placement area validation using IPlacementArea
interface.
This is a single area placement, generally it would be used for the entire game map where player is allowed to place objects.
However, IPlacementArea
interface allows this area to be more flexible in its definition. With this there are 2 managers provided by the package:
Sphere area manager - manages areas by a list of sphere bounds.
Object area manager - manages areas by a list of objects and their defined bounds. Removing or adding objects will remove/add placement area.
As always, using the interface you can replace built-in options with your customised placement areas!