Search Results for

    Show / Hide Table of Contents

    Struct CollisionController.Intersection

    The struct that holds references of intersections.

    Namespace: Interaction
    Assembly: Assembly-CSharp.dll
    Syntax
    public struct Intersection

    Constructors

    | Improve this Doc View Source

    Intersection(GameObject, Boolean)

    Constructer to create a struct to store references for a detected intersection.

    Declaration
    public Intersection(GameObject intersectedObject, bool intersectionDetected)
    Parameters
    Type Name Description
    GameObject intersectedObject

    The intersected TrainAR object.

    System.Boolean intersectionDetected

    If a intersection is detected

    Methods

    | Improve this Doc View Source

    GetIntersectedObject()

    Get the intersected TrainAR object reference in the struct.

    Declaration
    public GameObject GetIntersectedObject()
    Returns
    Type Description
    GameObject

    The TrainAR gameobject.

    | Improve this Doc View Source

    GetIntersectionDetected()

    Get if a intersection is detected.

    Declaration
    public bool GetIntersectionDetected()
    Returns
    Type Description
    System.Boolean

    If a intersection is detected.

    | Improve this Doc View Source

    SetIntersectedObject(GameObject)

    Set the intersected TrainAR object reference in the struct.

    Declaration
    public void SetIntersectedObject(GameObject intersectedObject)
    Parameters
    Type Name Description
    GameObject intersectedObject

    The intersected Object.

    | Improve this Doc View Source

    SetIntersectionDetected(Boolean)

    Set if a intersection is detected.

    Declaration
    public void SetIntersectionDetected(bool intersectionDetected)
    Parameters
    Type Name Description
    System.Boolean intersectionDetected

    True if intersection is detected.

    • Improve this Doc
    • View Source
    In This Article
    Back to top TrainAR Documentation