Show / Hide Table of Contents

    Struct RaycastHit4

    Raycasting information.

    public struct RaycastHit4

    Constructors

    RaycastHit4(Ray4)

    Create and initialize the raycast.

    public RaycastHit4(Ray4 ray)

    RaycastHit4(Ray4, Single, Vector4, Int32)

    Create, initialize, and report the raycast.

    public RaycastHit4(Ray4 ray, float distance, Vector4 normal, int hash)

    Fields

    distance

    The distance to impact point

    public float distance

    hash

    The collider hash that hits

    public int hash

    normal

    The surface normal of the impact

    public Vector4 normal

    ray

    The ray that generates the raycast

    public Ray4 ray

    Properties

    collider

    The collider that hits

    public Collider4 collider { get; }

    hit

    Does raycasting succeeded?

    public bool hit { get; }

    point

    The world point to the impact

    public Vector4 point { get; }

    Methods

    Set(Single, Vector4, Int32)

    Report the raycast

    public void Set(float distance, Vector4 normal, int hash)
    ▲ Copyright © 2017 Wello Soft