Flock

from panda3d.ai import Flock
class Flock

Bases:

This class is used to define the flock attributes and the AI characters which are part of the flock.

Inheritance diagram

Inheritance diagram of Flock

__init__(param0: Flock)
__init__(flock_id: int, vcone_angle: float, vcone_radius: float, separation_wt: int, cohesion_wt: int, alignment_wt: int)
addAiChar(ai_char: AICharacter)

This function adds AI characters to the flock.

getId() int

Function to access the private member flock_id.