Object Placement
  • WELCOME
    • πŸ‘‹Hello
    • πŸ—ΊοΈRoadmap
    • ⛑️Support & Community
    • πŸŽ“Changelog
  • GETTING STARTED
    • πŸ”ŒImport package
    • βš’οΈAdd object placement to scene
    • 🚢Add object placement bounds
  • HOW IT WORKS
    • πŸ‘‡Object Placement
    • πŸ¦₯Placement Bounds
    • πŸ₯…Placement Area
Powered by GitBook
On this page
  • Overview
  • Multiple placement areas
  1. HOW IT WORKS

Placement Area

PreviousPlacement Bounds

Last updated 18 days ago

Overview

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.

Multiple placement areas

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!

πŸ₯…
Placement area custom type built-in options