Boid Operators¶
-
bpy.ops.boid.rule_add(type='GOAL')¶ Add a boid rule to the current boid state
Parameters: type (enum in ['GOAL', 'AVOID', 'AVOID_COLLISION', 'SEPARATE', 'FLOCK', 'FOLLOW_LEADER', 'AVERAGE_SPEED', 'FIGHT'], (optional)) – Type
GOALGoal, Go to assigned object or loudest assigned signal source.AVOIDAvoid, Get away from assigned object or loudest assigned signal source.AVOID_COLLISIONAvoid Collision, Maneuver to avoid collisions with other boids and deflector objects in near future.SEPARATESeparate, Keep from going through other boids.FLOCKFlock, Move to center of neighbors and match their velocity.FOLLOW_LEADERFollow Leader, Follow a boid or assigned object.AVERAGE_SPEEDAverage Speed, Maintain speed, flight level or wander.FIGHTFight, Go to closest enemy and attack when in range.
-
bpy.ops.boid.rule_del()¶ Delete current boid rule
-
bpy.ops.boid.rule_move_down()¶ Move boid rule down in the list
-
bpy.ops.boid.rule_move_up()¶ Move boid rule up in the list
-
bpy.ops.boid.state_add()¶ Add a boid state to the particle system
-
bpy.ops.boid.state_del()¶ Delete current boid state
-
bpy.ops.boid.state_move_down()¶ Move boid state down in the list
-
bpy.ops.boid.state_move_up()¶ Move boid state up in the list