C# Class ClassicBoids, Elemental

Inheritance: MonoBehaviour
Datei anzeigen Open project: CodeStrumpet/Elemental

Public Properties

Property Type Description
boid ClassicBoid,
center Vector3
cohesionFactor float
fixYValue bool
flockHasLeader bool
maintainConstantHeight bool
number_of_boids int
repulsionFactor float
scatterFactor float
speed float
stationaryCenter bool
velocitySimilarityFactor float

Public Methods

Method Description
Start ( ) : void
Update ( ) : void

Private Methods

Method Description
addScatter ( int boidIndex ) : Vector3
getCenterAttractor ( int boidIndex ) : Vector3
getRepulsion ( int boidIndex ) : Vector3
matchVelocity ( int boidIndex ) : Vector3

Method Details

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

boid public_oe property

public ClassicBoid, boid
return ClassicBoid,

center public_oe property

public Vector3 center
return Vector3

cohesionFactor public_oe property

public float cohesionFactor
return float

fixYValue public_oe property

public bool fixYValue
return bool

flockHasLeader public_oe property

public bool flockHasLeader
return bool

maintainConstantHeight public_oe property

public bool maintainConstantHeight
return bool

number_of_boids public_oe property

public int number_of_boids
return int

repulsionFactor public_oe property

public float repulsionFactor
return float

scatterFactor public_oe property

public float scatterFactor
return float

speed public_oe property

public float speed
return float

stationaryCenter public_oe property

public bool stationaryCenter
return bool

velocitySimilarityFactor public_oe property

public float velocitySimilarityFactor
return float