SHVDN  v3
An ASI plugin for Grand Theft Auto V, which allows running scripts written in any .NET language in-game. Developed by crosire https://github.com/crosire/scripthookvdotnet/
GTA.RaycastResult Struct Reference

Public Member Functions

 RaycastResult (int handle)
 

Properties

int Result [get]
 Gets the result code. More...
 
bool DidHit [get]
 Gets a value indicating whether this ray cast collided with anything. More...
 
Entity HitEntity [get]
 Gets the Entity this ray cast collided with. More...
 
Vector3 HitPosition [get]
 Gets the world coordinates where this ray cast collided. More...
 
Vector3 SurfaceNormal [get]
 Gets the normal of the surface where this ray cast collided. More...
 
MaterialHash MaterialHash [get]
 Gets a hash indicating the material type of what this ray cast collided with. More...
 

Constructor & Destructor Documentation

◆ RaycastResult()

GTA.RaycastResult.RaycastResult ( int  handle)

Property Documentation

◆ DidHit

bool GTA.RaycastResult.DidHit
get

Gets a value indicating whether this ray cast collided with anything.

◆ HitEntity

Entity GTA.RaycastResult.HitEntity
get

Gets the Entity this ray cast collided with.

Returns null if the ray cast didn't collide with any Entity.

◆ HitPosition

Vector3 GTA.RaycastResult.HitPosition
get

Gets the world coordinates where this ray cast collided.

Returns Vector3.Zero if the ray cast didn't collide with anything.

◆ MaterialHash

MaterialHash GTA.RaycastResult.MaterialHash
get

Gets a hash indicating the material type of what this ray cast collided with.

Returns MaterialHash.None if the ray cast didn't collide with anything.

◆ Result

int GTA.RaycastResult.Result
get

Gets the result code.

◆ SurfaceNormal

Vector3 GTA.RaycastResult.SurfaceNormal
get

Gets the normal of the surface where this ray cast collided.

Returns Vector3.Zero if the ray cast didn't collide with anything.


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