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

  • GOAL Goal – Go to assigned object or loudest assigned signal source.

  • AVOID Avoid – Get away from assigned object or loudest assigned signal source.

  • AVOID_COLLISION Avoid Collision – Maneuver to avoid collisions with other boids and deflector objects in near future.

  • SEPARATE Separate – Keep from going through other boids.

  • FLOCK Flock – Move to center of neighbors and match their velocity.

  • FOLLOW_LEADER Follow Leader – Follow a boid or assigned object.

  • AVERAGE_SPEED Average Speed – Maintain speed, flight level or wander.

  • FIGHT Fight – 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