EasyRoads3D V3 Manual
 

 

ERConnection


Description

This is the base class for an EasyRoads3D connection/crossing between roads.

 

Constructors

...

 

Functions

 

public bool Destroy()

Removes the connection object

 

public ERConnectionData[] GetConnectionData()

Returns the currently available connection data of the connection object

 

public Vector3 GetLocalConnectionPosition(int connectionIndex)

Returns the local position of connectionIndex

 

public Vector3[] GetLocalConnectionPositions()

Returns the local positions of all the connections of this connection prefab

 

public string GetName()

Returns the name of the connection object

 

public void SetPosition(Vector3 position)

Updates the position of the connection object

 

public void SetName(string name)

Updates the name of the connection object

 

public void SetRotation(Vector3 euler)

Updates the eulerAngles rotation of the connection object

 

public void UnConnect(int connectionIndex)

Removes the connection with the road object at connectionIndex.