Struct RaycastResult
Namespace: GTA
Assembly: ScriptHookVDotNet3.dll
Syntax
public readonly struct RaycastResult
Constructors
|
Improve this Doc
View Source
RaycastResult(Int32)
Declaration
public RaycastResult(int handle)
Parameters
Type |
Name |
Description |
Int32 |
handle |
|
Properties
|
Improve this Doc
View Source
DidHit
Gets a value indicating whether this ray cast collided with anything.
Declaration
public readonly bool DidHit { get; }
Property Value
|
Improve this Doc
View Source
HitEntity
Gets the Entity this ray cast collided with.
Returns null if the ray cast didn't collide with any Entity.
Declaration
public readonly Entity HitEntity { get; }
Property Value
|
Improve this Doc
View Source
HitPosition
Gets the world coordinates where this ray cast collided.
Returns Zero if the ray cast didn't collide with anything.
Declaration
public readonly Vector3 HitPosition { get; }
Property Value
|
Improve this Doc
View Source
MaterialHash
Gets a hash indicating the material type of what this ray cast collided with.
Returns None if the ray cast didn't collide with anything.
Declaration
public readonly MaterialHash MaterialHash { get; }
Property Value
|
Improve this Doc
View Source
Result
Declaration
public readonly int Result { get; }
Property Value
|
Improve this Doc
View Source
SurfaceNormal
Gets the normal of the surface where this ray cast collided.
Returns Zero if the ray cast didn't collide with anything.
Declaration
public readonly Vector3 SurfaceNormal { get; }
Property Value