C# Class RampBrush, RoverGame

Inheritance: MonoBehaviour
Show file Open project: Stumpstump/RoverGame Class Usage Examples

Public Properties

Property Type Description
backupVector Vector3
beginRamp Vector3
brushOn bool
brushOpacity float
brushPosition Vector3
brushSampleDensity float
brushSize float
brushSoftness float
controlPoints List
endRamp Vector3
isBrushHidden bool
multiPoint bool
numSubDivPerSeg int
shiftProcessed bool
sizeJitter float
spacingJitter float
turnBrushOnVar bool

Public Methods

Method Description
OnDrawGizmos ( ) : void
StrokePath ( ) : void
_StrokePath ( ) : void
bitmapCordsToTerrain ( TerrainData terData, int x, int y ) : float[]
rampBrush ( ) : void
terrainCordsToBitmap ( TerrainData terData, Vector3 v ) : int[]
toggleBrushOn ( ) : void

Private Methods

Method Description
calculateDistBetweenPoints ( List cps ) : void
calculateDistBetweenPointsInPixels ( List cps, TerrainData terData ) : void
parameterizedLine ( float t, List cps, StringBuilder sb = null ) : Ray

Method Details

OnDrawGizmos() public method

public OnDrawGizmos ( ) : void
return void

StrokePath() public method

public StrokePath ( ) : void
return void

_StrokePath() public method

public _StrokePath ( ) : void
return void

bitmapCordsToTerrain() public method

public bitmapCordsToTerrain ( TerrainData terData, int x, int y ) : float[]
terData TerrainData
x int
y int
return float[]

rampBrush() public method

public rampBrush ( ) : void
return void

terrainCordsToBitmap() public method

public terrainCordsToBitmap ( TerrainData terData, Vector3 v ) : int[]
terData TerrainData
v Vector3
return int[]

toggleBrushOn() public method

public toggleBrushOn ( ) : void
return void

Property Details

backupVector public property

public Vector3 backupVector
return Vector3

beginRamp public property

public Vector3 beginRamp
return Vector3

brushOn public property

public bool brushOn
return bool

brushOpacity public property

public float brushOpacity
return float

brushPosition public property

public Vector3 brushPosition
return Vector3

brushSampleDensity public property

public float brushSampleDensity
return float

brushSize public property

public float brushSize
return float

brushSoftness public property

public float brushSoftness
return float

controlPoints public property

public List controlPoints
return List

endRamp public property

public Vector3 endRamp
return Vector3

isBrushHidden public property

public bool isBrushHidden
return bool

multiPoint public property

public bool multiPoint
return bool

numSubDivPerSeg public property

public int numSubDivPerSeg
return int

shiftProcessed public property

public bool shiftProcessed
return bool

sizeJitter public property

public float sizeJitter
return float

spacingJitter public property

public float spacingJitter
return float

turnBrushOnVar public property

public bool turnBrushOnVar
return bool