Photon Fusion 2.0.3

Static Public Member Functions | Public Attributes | List of all members
InterestManagementConfig Class Reference

Settings for initializing interest management. More...

Static Public Member Functions

static bool CheckCellHashIntOverflow (int x, int y, int z)
 Checks whether the 3 cell grid sizes cause an int overflow when creating a cell hash. More...
 

Public Attributes

Vector3Int AreaOfInterestCellGridSize = new Vector3Int(Simulation.AreaOfInterestState.GRID_CELL_COUNT_DEFAULT, Simulation.AreaOfInterestState.GRID_CELL_COUNT_DEFAULT, Simulation.AreaOfInterestState.GRID_CELL_COUNT_DEFAULT)
 The size of the Area of Interest cell grid. The total world size is this value multiplied by AreaOfInterestCellSize More...
 
int AreaOfInterestCellSize = Simulation.AreaOfInterestState.CELL_SIZE_DEFAULT
 The size of the cells used by the Area of Interest system. More...
 

Detailed Description

Settings for initializing interest management.

Member Function Documentation

◆ CheckCellHashIntOverflow()

static bool CheckCellHashIntOverflow ( int  x,
int  y,
int  z 
)
static

Checks whether the 3 cell grid sizes cause an int overflow when creating a cell hash.

Parameters
xx
yy
zz
Returns
True if there is an overflow else false

Member Data Documentation

◆ AreaOfInterestCellGridSize

Vector3Int AreaOfInterestCellGridSize = new Vector3Int(Simulation.AreaOfInterestState.GRID_CELL_COUNT_DEFAULT, Simulation.AreaOfInterestState.GRID_CELL_COUNT_DEFAULT, Simulation.AreaOfInterestState.GRID_CELL_COUNT_DEFAULT)

The size of the Area of Interest cell grid. The total world size is this value multiplied by AreaOfInterestCellSize

◆ AreaOfInterestCellSize

int AreaOfInterestCellSize = Simulation.AreaOfInterestState.CELL_SIZE_DEFAULT

The size of the cells used by the Area of Interest system.