Photon Fusion 2.1.1

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.

Public Attributes

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

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.