C# Class ProceduralTreeSegment, Elemental

Inheritance: MonoBehaviour
Show file Open project: CodeStrumpet/Elemental Class Usage Examples

Public Properties

Property Type Description
branchLoc Vector3
maxBranchAngle float
maxDepth int
minBranchAngle float
noBranchOnEndNode bool
readyToBranch bool
sizeScalar float
verbose bool

Public Methods

Method Description
Awake ( ) : void
Branch ( ) : bool
Init ( int _depthLevel, float _rotateAmount, float _sizeScalar ) : void
OnMouseUp ( ) : void
markBranchPoint ( ) : void

Private Methods

Method Description
GetBranchLoc ( ) : Vector3
setHasGrowthBehavior ( ) : void

Method Details

Awake() public method

public Awake ( ) : void
return void

Branch() public method

public Branch ( ) : bool
return bool

Init() public method

public Init ( int _depthLevel, float _rotateAmount, float _sizeScalar ) : void
_depthLevel int
_rotateAmount float
_sizeScalar float
return void

OnMouseUp() public method

public OnMouseUp ( ) : void
return void

markBranchPoint() public method

public markBranchPoint ( ) : void
return void

Property Details

branchLoc public property

public Vector3 branchLoc
return Vector3

maxBranchAngle public property

public float maxBranchAngle
return float

maxDepth public property

public int maxDepth
return int

minBranchAngle public property

public float minBranchAngle
return float

noBranchOnEndNode public property

public bool noBranchOnEndNode
return bool

readyToBranch public property

public bool readyToBranch
return bool

sizeScalar public property

public float sizeScalar
return float

verbose public property

public bool verbose
return bool