![]() |
ezEngine Release 26.3
|
Spatial system implementation using regular grids for organizing objects. More...
#include <SpatialSystem_RegularGrid.h>

Public Member Functions | |
| ezSpatialSystem_RegularGrid (ezUInt32 uiCellSize=128) | |
| Creates a regular grid spatial system with the given cell size. | |
| ezResult | GetCellBoxForSpatialData (const ezSpatialDataHandle &hData, ezBoundingBox &out_boundingBox) const |
| Returns the bounding box of the cell associated with the given spatial data. Useful for debug visualizations. | |
| void | GetAllCellBoxes (ezDynamicArray< ezBoundingBox > &out_boundingBoxes, ezSpatialData::Category filterCategory=ezInvalidSpatialDataCategory) const |
| Returns bounding boxes of all existing cells. | |
| template<typename Functor > | |
| EZ_FORCE_INLINE void | ForEachGrid (const Data &data, const ezSpatialDataHandle &hData, Functor func) const |
Public Member Functions inherited from ezSpatialSystem | |
| virtual void | FindObjectsInSphere (const ezBoundingSphere &sphere, const QueryParams &queryParams, ezDynamicArray< ezGameObject * > &out_objects) const |
| virtual void | FindObjectsInBox (const ezBoundingBox &box, const QueryParams &queryParams, ezDynamicArray< ezGameObject * > &out_objects) const |
Public Member Functions inherited from ezReflectedClass | |
| virtual const ezRTTI * | GetDynamicRTTI () const |
| bool | IsInstanceOf (const ezRTTI *pType) const |
| Returns whether the type of this instance is of the given type or derived from it. | |
| template<typename T > | |
| EZ_ALWAYS_INLINE bool | IsInstanceOf () const |
| Returns whether the type of this instance is of the given type or derived from it. | |
Private Member Functions | |
| ezVisibilityState::Enum | GetVisibilityState (const ezSpatialDataHandle &hData, ezUInt32 uiNumFramesBeforeInvisible) const override |
| Retrieves a state describing how visible the object is. | |
Additional Inherited Members | |
Public Types inherited from ezSpatialSystem | |
| using | QueryCallback = ezDelegate< ezVisitorExecution::Enum(ezGameObject *)> |
| using | IsOccludedFunc = ezDelegate< bool(const ezSimdBBox &)> |
Static Public Member Functions inherited from ezNoBase | |
| static const ezRTTI * | GetStaticRTTI () |
Protected Attributes inherited from ezSpatialSystem | |
| ezProxyAllocator | m_Allocator |
| ezUInt64 | m_uiFrameCounter = 0 |
Spatial system implementation using regular grids for organizing objects.
Divides space into uniform grid cells to enable efficient spatial queries. Supports multiple grids for different spatial data categories and implements a caching system to optimize frequently used tag-based queries by creating specialized grid views.
|
overrideprivatevirtual |
Implements ezSpatialSystem.
|
overrideprivatevirtual |
Implements ezSpatialSystem.
|
overrideprivatevirtual |
Implements ezSpatialSystem.
|
overrideprivatevirtual |
Implements ezSpatialSystem.
|
overrideprivatevirtual |
Implements ezSpatialSystem.
|
overrideprivatevirtual |
Implements ezSpatialSystem.
|
overrideprivatevirtual |
Retrieves a state describing how visible the object is.
An object may be invisible, fully visible, or indirectly visible (through shadows or reflections).
| uiNumFramesBeforeInvisible | Used to treat an object that was visible and just became invisible as visible for a few more frames. |
Implements ezSpatialSystem.
|
overrideprivatevirtual |
Reimplemented from ezSpatialSystem.
|
overrideprivatevirtual |
Implements ezSpatialSystem.
|
overrideprivatevirtual |
Implements ezSpatialSystem.