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 SourceIntersection(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 SourceGetIntersectedObject()
Get the intersected TrainAR object reference in the struct.
Declaration
public GameObject GetIntersectedObject()
Returns
Type | Description |
---|---|
GameObject | The TrainAR gameobject. |
GetIntersectionDetected()
Get if a intersection is detected.
Declaration
public bool GetIntersectionDetected()
Returns
Type | Description |
---|---|
System.Boolean | If a intersection is detected. |
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. |
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. |