|
| plSpatialSystem_RegularGrid (plUInt32 uiCellSize=128) |
|
plResult | GetCellBoxForSpatialData (const plSpatialDataHandle &hData, plBoundingBox &out_boundingBox) const |
| Returns the bounding box of the cell associated with the given spatial data. Useful for debug visualizations.
|
|
void | GetAllCellBoxes (plDynamicArray< plBoundingBox > &out_boundingBoxes, plSpatialData::Category filterCategory=plInvalidSpatialDataCategory) const |
| Returns bounding boxes of all existing cells.
|
|
template<typename Functor > |
PL_FORCE_INLINE void | ForEachGrid (const Data &data, const plSpatialDataHandle &hData, Functor func) const |
|
virtual void | FindObjectsInSphere (const plBoundingSphere &sphere, const QueryParams &queryParams, plDynamicArray< plGameObject * > &out_objects) const |
|
virtual void | FindObjectsInBox (const plBoundingBox &box, const QueryParams &queryParams, plDynamicArray< plGameObject * > &out_objects) const |
|
virtual const plRTTI * | GetDynamicRTTI () const |
|
bool | IsInstanceOf (const plRTTI *pType) const |
| Returns whether the type of this instance is of the given type or derived from it.
|
|
template<typename T > |
PL_ALWAYS_INLINE bool | IsInstanceOf () const |
| Returns whether the type of this instance is of the given type or derived from it.
|
|
◆ CreateSpatialData()
◆ CreateSpatialDataAlwaysVisible()
◆ DeleteSpatialData()
◆ FindObjectsInBox()
◆ FindObjectsInSphere()
◆ FindVisibleObjects()
◆ GetVisibilityState()
plVisibilityState plSpatialSystem_RegularGrid::GetVisibilityState |
( |
const plSpatialDataHandle & | hData, |
|
|
plUInt32 | uiNumFramesBeforeInvisible ) const |
|
overrideprivatevirtual |
Retrieves a state describing how visible the object is.
An object may be invisible, fully visible, or indirectly visible (through shadows or reflections).
- Parameters
-
uiNumFramesBeforeInvisible | Used to treat an object that was visible and just became invisible as visible for a few more frames. |
Implements plSpatialSystem.
◆ StartNewFrame()
void plSpatialSystem_RegularGrid::StartNewFrame |
( |
| ) |
|
|
overrideprivatevirtual |
◆ UpdateSpatialDataBounds()
◆ UpdateSpatialDataObject()
The documentation for this class was generated from the following files: