Search Results for

    Show / Hide Table of Contents

    Struct RaycastResult

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    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
    Type Description
    Boolean
    | 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
    Type Description
    Entity
    | 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
    Type Description
    Vector3
    | 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
    Type Description
    MaterialHash
    | Improve this Doc View Source

    Result

    Gets the result code.

    Declaration
    public readonly int Result { get; }
    Property Value
    Type Description
    Int32
    | 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
    Type Description
    Vector3
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX