C# Class BoidComponent

Inheritance: MonoBehaviour
Mostrar archivo Open project: jsngai/deepsquid

Public Properties

Property Type Description
vlim float

Public Methods

Method Description
changeMult ( string key, float value ) : bool
init ( float a1, float a2, float a3, float a4, float vl ) : void
run ( GameObject self, List l, GameObject chasee ) : void

Private Methods

Method Description
limitVel ( Vector3 currVel ) : Vector3
rule1 ( GameObject self, List l ) : Vector3
rule2 ( GameObject self, List l ) : Vector3
rule3 ( GameObject self, List l ) : Vector3
rule4 ( GameObject self, List l, GameObject chasee ) : Vector3
toggleFlock ( ) : string

Method Details

changeMult() public method

public changeMult ( string key, float value ) : bool
key string
value float
return bool

init() public method

public init ( float a1, float a2, float a3, float a4, float vl ) : void
a1 float
a2 float
a3 float
a4 float
vl float
return void

run() public method

public run ( GameObject self, List l, GameObject chasee ) : void
self GameObject
l List
chasee GameObject
return void

Property Details

vlim public_oe property

public float vlim
return float