DayZ 1.24
Loading...
Searching...
No Matches
RaycastRVParams Class Reference
Collaboration diagram for RaycastRVParams:
[legend]

Private Member Functions

void RaycastRVParams (vector vBeg, vector vEnd, Object pIgnore=null, float fRadius=0.0)
 

Private Attributes

vector begPos
 begin position of raycast (e.g. player position)
 
vector endPos
 end position of raycast (e.g. player direction)
 
Object ignore
 ignore this object in collision, used only if groundOnly is false
 
Object with
 ignore object with this object, otherwise collision hits, used only if groundOnly is false
 
float radius
 radius along the ray tested
 
CollisionFlags flags
 
int type
 
bool sorted
 used only if groundOnly = false
 
bool groundOnly
 raycasts only ground (ignores all objects). Default value is false if not needed.
 

Detailed Description

Input parameters for RaycastRVProxy function.

Definition at line 49 of file DayZPhysics.c.

Constructor & Destructor Documentation

◆ RaycastRVParams()

void RaycastRVParams::RaycastRVParams ( vector vBeg,
vector vEnd,
Object pIgnore = null,
float fRadius = 0.0 )
inlineprivate

Definition at line 78 of file DayZPhysics.c.

79 {
80 begPos = vBeg;
81 endPos = vEnd;
84
85 // default values
86 with = null;
87 flags = CollisionFlags.NEARESTCONTACT;
89 sorted = false;
90 groundOnly = false;
91 }
vector endPos
end position of raycast (e.g. player direction)
Definition DayZPhysics.c:52
bool groundOnly
raycasts only ground (ignores all objects). Default value is false if not needed.
Definition DayZPhysics.c:76
bool sorted
used only if groundOnly = false
Definition DayZPhysics.c:75
Object with
ignore object with this object, otherwise collision hits, used only if groundOnly is false
Definition DayZPhysics.c:55
float radius
radius along the ray tested
Definition DayZPhysics.c:57
vector begPos
begin position of raycast (e.g. player position)
Definition DayZPhysics.c:51
Object ignore
ignore this object in collision, used only if groundOnly is false
Definition DayZPhysics.c:54
CollisionFlags flags
Definition DayZPhysics.c:63
CollisionFlags
Definition EnDebug.c:141

References begPos, endPos, flags, groundOnly, ignore, radius, sorted, type, and with.

Member Data Documentation

◆ begPos

vector RaycastRVParams::begPos
private

begin position of raycast (e.g. player position)

Definition at line 51 of file DayZPhysics.c.

Referenced by RaycastRVParams().

◆ endPos

vector RaycastRVParams::endPos
private

end position of raycast (e.g. player direction)

Definition at line 52 of file DayZPhysics.c.

Referenced by RaycastRVParams().

◆ flags

CollisionFlags RaycastRVParams::flags
private

Sets the raycast behaviour in terms of result.

See also
CollisionFlags

Definition at line 63 of file DayZPhysics.c.

Referenced by RaycastRVParams().

◆ groundOnly

bool RaycastRVParams::groundOnly
private

raycasts only ground (ignores all objects). Default value is false if not needed.

Definition at line 76 of file DayZPhysics.c.

Referenced by RaycastRVParams().

◆ ignore

Object RaycastRVParams::ignore
private

ignore this object in collision, used only if groundOnly is false

Definition at line 54 of file DayZPhysics.c.

Referenced by RaycastRVParams().

◆ radius

float RaycastRVParams::radius
private

radius along the ray tested

Definition at line 57 of file DayZPhysics.c.

Referenced by RaycastRVParams().

◆ sorted

bool RaycastRVParams::sorted
private

used only if groundOnly = false

Definition at line 75 of file DayZPhysics.c.

Referenced by RaycastRVParams().

◆ type

int RaycastRVParams::type
private

type of intersection, possible values ObjIntersectFire(0), ObjIntersectView(1), ObjIntersectGeom(2), ObjIntersectIFire(3), ObjIntersectNone(4)

Definition at line 73 of file DayZPhysics.c.

Referenced by RaycastRVParams().

◆ with

Object RaycastRVParams::with
private

ignore object with this object, otherwise collision hits, used only if groundOnly is false

Definition at line 55 of file DayZPhysics.c.

Referenced by RaycastRVParams().


The documentation for this class was generated from the following file: