input-hit-area.rst 956 B

1234567891011121314151617181920212223242526272829
  1. .. include:: ../_header.rst
  2. Hit Area
  3. --------
  4. .. toctree::
  5. :maxdepth: 1
  6. input-hit-area-rectangle
  7. input-hit-area-ellipse
  8. input-hit-area-circle
  9. input-hit-area-polygon
  10. input-hit-area-pixel-perfect
  11. Making interactive objects is part of almost every game. You can enable an interactive hit area for an object right in the |InspectorView|_. You can select in the **Hit Area** section the shape for the interactive area of an object. By default, the shape is ``NONE``, which means the object doesn't have a hit are at all.
  12. The available hit area shapes are:
  13. * Rectangle
  14. * Ellipse
  15. * Circle
  16. * Polygon
  17. * Pixel Perfect
  18. .. image:: ../images/scene-editor-input-hit-area-options-20230517.webp
  19. :alt: The hit area shapes
  20. Each shape has a dedicated section for the shape's properties. In addition of the section, you can activate the **Edit Hit Area** tool (``I``) and change the properties of the area by dragging handlers in the scene.