Search Results for

    Show / Hide Table of Contents

    Struct CollisionController.Intersection

    The struct that holds references of intersections.

    Namespace: Interaction
    Assembly: .dll
    Syntax
    public struct CollisionController.Intersection

    Constructors

    | Edit this page View Source

    Intersection(GameObject, bool)

    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.

    bool intersectionDetected

    If a intersection is detected

    Methods

    | Edit this page View Source

    GetIntersectedObject()

    Get the intersected TrainAR object reference in the struct.

    Declaration
    public GameObject GetIntersectedObject()
    Returns
    Type Description
    GameObject

    The TrainAR gameobject.

    | Edit this page View Source

    GetIntersectionDetected()

    Get if a intersection is detected.

    Declaration
    public bool GetIntersectionDetected()
    Returns
    Type Description
    bool

    If a intersection is detected.

    | Edit this page 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.

    | Edit this page View Source

    SetIntersectionDetected(bool)

    Set if a intersection is detected.

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

    True if intersection is detected.

    • Edit this page
    • View Source
    In this article
    Back to top TrainAR Documentation