Photon Fusion 2.0.3

Public Attributes | Protected Member Functions | List of all members
Query Class Referenceabstract

Base class for all Lag Compensation queries More...

Inherits IBoundsTraversalTest.

Inherited by BoxOverlapQuery, RaycastQuery, and SphereOverlapQuery.

Public Attributes

float? Alpha
 Represents the interpolation factor between the current and next simulation tick. More...
 
LayerMask LayerMask
 Represents the layer mask to selectively ignore colliders when performing the query. More...
 
HitOptions Options
 Represents the options for the hit detection of the query. More...
 
PlayerRef Player
 Represents the player who initiated the query. More...
 
PreProcessingDelegate PreProcessingDelegate
 Represents the delegate to be called for pre-processing before the query is performed. More...
 
int? Tick
 Represents the simulation tick at which the query was initiated. More...
 
int? TickTo
 Represents the simulation tick to which the query is performed. More...
 
QueryTriggerInteraction TriggerInteraction
 Represents the interaction type of the query with triggers. More...
 
void * UserArgs
 Represents the user arguments for the query. More...
 

Protected Member Functions

abstract bool Check (ref AABB bounds)
 Checks if the provided bounds should be included in the query. More...
 
 Query (ref QueryParams qParams)
 Initializes a new instance of the Query class using the provided QueryParams. More...
 

Detailed Description

Base class for all Lag Compensation queries

Constructor & Destructor Documentation

◆ Query()

Query ( ref QueryParams  qParams)
protected

Initializes a new instance of the Query class using the provided QueryParams.

Parameters
qParamsThe QueryParams to use for initializing the Query.

Member Function Documentation

◆ Check()

abstract bool Check ( ref AABB  bounds)
protectedpure virtual

Checks if the provided bounds should be included in the query.

Parameters
boundsThe bounds to check.
Returns
True if the bounds should be included in the query, false otherwise.

Implemented in SphereOverlapQuery, RaycastQuery, and BoxOverlapQuery.

Member Data Documentation

◆ Alpha

float? Alpha

Represents the interpolation factor between the current and next simulation tick.

◆ LayerMask

LayerMask LayerMask

Represents the layer mask to selectively ignore colliders when performing the query.

◆ Options

HitOptions Options

Represents the options for the hit detection of the query.

◆ Player

PlayerRef Player

Represents the player who initiated the query.

◆ PreProcessingDelegate

PreProcessingDelegate PreProcessingDelegate

Represents the delegate to be called for pre-processing before the query is performed.

◆ Tick

int? Tick

Represents the simulation tick at which the query was initiated.

◆ TickTo

int? TickTo

Represents the simulation tick to which the query is performed.

◆ TriggerInteraction

QueryTriggerInteraction TriggerInteraction

Represents the interaction type of the query with triggers.

◆ UserArgs

void* UserArgs

Represents the user arguments for the query.