16 Flock::Flock(
unsigned int flock_id,
double vcone_angle,
double vcone_radius,
unsigned int separation_wt,
17 unsigned int cohesion_wt,
unsigned int alignment_wt) {
19 _flock_vcone_angle = vcone_angle;
20 _flock_vcone_radius = vcone_radius;
21 _separation_wt = separation_wt;
22 _cohesion_wt = cohesion_wt;
23 _alignment_wt = alignment_wt;
33 ai_char->_ai_char_flock_id = _flock_id;
34 ai_char->_steering->_flock_group =
this;
35 _ai_char_list.push_back(ai_char);
38 unsigned int Flock::get_id() {
void add_ai_char(AICharacter *ai_char)
This function adds AI characters to the flock.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.