Photon Fusion 2.0.4

Public Member Functions | Public Attributes | List of all members
RaycastQueryParams Struct Reference

Base parameters needed to execute a raycast query More...

Public Member Functions

 RaycastQueryParams (QueryParams queryParams, Vector3 origin, Vector3 direction, float length, int staticHitsCapacity=64)
 Create a new RaycastQueryParams More...
 

Public Attributes

Vector3 Direction
 Represents the direction of the raycast for the query. More...
 
float Length
 Represents the maximum length of the raycast for the query. More...
 
Vector3 Origin
 Represents the origin point of the raycast for the query. More...
 
QueryParams QueryParams
 Represents the base parameters for the raycast query. More...
 
int StaticHitsCapacity
 Represents the capacity for the cached PhysX and Box2D static hits. More...
 

Detailed Description

Base parameters needed to execute a raycast query

Constructor & Destructor Documentation

◆ RaycastQueryParams()

RaycastQueryParams ( QueryParams  queryParams,
Vector3  origin,
Vector3  direction,
float  length,
int  staticHitsCapacity = 64 
)

Create a new RaycastQueryParams

Parameters
queryParamsParameters to be used
originThe raycast origin
directionThe raycast direction
lengthThe raycast max length
staticHitsCapacityCapacity for the cached PhysX and Box2D static hits.

Member Data Documentation

◆ Direction

Vector3 Direction

Represents the direction of the raycast for the query.

◆ Length

float Length

Represents the maximum length of the raycast for the query.

◆ Origin

Vector3 Origin

Represents the origin point of the raycast for the query.

◆ QueryParams

Represents the base parameters for the raycast query.

◆ StaticHitsCapacity

int StaticHitsCapacity

Represents the capacity for the cached PhysX and Box2D static hits.