Table of Contents

Struct CollisionController.Intersection

Namespace
Interaction

The struct that holds references of intersections.

public struct CollisionController.Intersection

Constructors

Intersection(GameObject, bool)

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

public Intersection(GameObject intersectedObject, bool intersectionDetected)

Parameters

intersectedObject GameObject

The intersected TrainAR object.

intersectionDetected bool

If a intersection is detected

Methods

GetIntersectedObject()

Get the intersected TrainAR object reference in the struct.

public GameObject GetIntersectedObject()

Returns

GameObject

The TrainAR gameobject.

GetIntersectionDetected()

Get if a intersection is detected.

public bool GetIntersectionDetected()

Returns

bool

If a intersection is detected.

SetIntersectedObject(GameObject)

Set the intersected TrainAR object reference in the struct.

public void SetIntersectedObject(GameObject intersectedObject)

Parameters

intersectedObject GameObject

The intersected Object.

SetIntersectionDetected(bool)

Set if a intersection is detected.

public void SetIntersectionDetected(bool intersectionDetected)

Parameters

intersectionDetected bool

True if intersection is detected.