C# Class TrackGeneration, ProceduralRace

Inheritance: MonoBehaviour
显示文件 Open project: adrianogil/ProceduralRace Class Usage Examples

Public Properties

Property Type Description
curvePoints int
radius Vector2
radiusSizeFactor float
roadSize float
roadWallSize float
trackMaterial Material

Public Methods

Method Description
GenerateTrack ( ) : void
OnDrawGizmos ( ) : void
UpdateTrackMesh ( ) : void

Private Methods

Method Description
GenerateCurveTriangles ( MeshBuilder, meshBuilder, bool doubleTriangles = false ) : MeshBuilder,
GenerateObject ( MeshBuilder, meshBuilder, string objectName ) : GameObject
GenerateRoadWallsMeshes ( Vector3 points ) : GameObject
GenerateTrackMesh ( Vector3 points ) : GameObject

Method Details

GenerateTrack() public method

public GenerateTrack ( ) : void
return void

OnDrawGizmos() public method

public OnDrawGizmos ( ) : void
return void

UpdateTrackMesh() public method

public UpdateTrackMesh ( ) : void
return void

Property Details

curvePoints public_oe property

public int curvePoints
return int

radius public_oe property

public Vector2 radius
return Vector2

radiusSizeFactor public_oe property

public float radiusSizeFactor
return float

roadSize public_oe property

public float roadSize
return float

roadWallSize public_oe property

public float roadWallSize
return float

trackMaterial public_oe property

public Material trackMaterial
return Material