Skip to main content

Road

class Road

Component used to create roads on the ground, these roads adapt and deform the terrain automatically.


public class Road extends Component

— Constructors (1) —

ConstructorDescription
Road()Creates a new instance of Road.

— Enumerators (1) —

public enum TextureMode {
Vertical, Horizontal
}

— Methods (20) —

NameDescription
float getResolution()Returns the current resolution of the Road.
float getRoadBorder()Returns the current value of the Road edge.
float getRoadBorderUV()Returns the current value of the Road UV edge.
float getRoadBorderVerticalOffset()Returns the current value of the vertical offset of the Road edge.
float getTerrainBorder()Returns the current value of the terrain border.
[TextureMode] getTextureMode()Retorna o modo de textura atual do Road.
float getTextureWidth()Returns the current width of the Road texture.
float getVerticalOffset()Returns the current vertical offset of the Road.
float getWidth()Returns the current width of the Road.
boolean isGenerateCollision()Returns true if the Road collision is already generated, returns false if not.
void setGenerateCollision(boolean value)Defines whether the Road collision will be generated or not.
void setResolution(float value)Sets the current resolution of the Road.
void setRoadBorder(float value)Sets the current value of the Road edge.
void setRoadBorderUV(float value)Sets the current value of the Road UV edge.
void setRoadBorderVerticalOffset(float value)Sets the current value of the vertical offset of the Road edge.
void setTerrainBorder(float value)Sets the current edge of the terrain.
void setTextureMode([TextureMode] value)Sets the current texture mode of the Road.
void setTextureWidth(float value)Sets the current width of the Road texture.
void setVerticalOffset(float value)Sets the current vertical offset of the Road.
void setWidth(float value)Sets the current width of the Road.