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
intersectedObjectGameObjectThe intersected TrainAR object.
intersectionDetectedboolIf 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
intersectedObjectGameObjectThe intersected Object.
SetIntersectionDetected(bool)
Set if a intersection is detected.
public void SetIntersectionDetected(bool intersectionDetected)
Parameters
intersectionDetectedboolTrue if intersection is detected.