Blender V2.61 - r43446
Classes | Typedefs | Functions

BKE_boids.h File Reference

#include "DNA_boid_types.h"

Go to the source code of this file.

Classes

struct  BoidBrainData

Typedefs

typedef struct BoidBrainData BoidBrainData

Functions

void boids_precalc_rules (struct ParticleSettings *part, float cfra)
void boid_brain (BoidBrainData *bbd, int p, struct ParticleData *pa)
void boid_body (BoidBrainData *bbd, struct ParticleData *pa)
void boid_default_settings (BoidSettings *boids)
BoidRuleboid_new_rule (int type)
BoidStateboid_new_state (BoidSettings *boids)
BoidStateboid_duplicate_state (BoidSettings *boids, BoidState *state)
void boid_free_settings (BoidSettings *boids)
BoidSettingsboid_copy_settings (BoidSettings *boids)
BoidStateboid_get_current_state (BoidSettings *boids)

Detailed Description

Since:
2009
Author:
Janne Karhu

Definition in file BKE_boids.h.


Typedef Documentation

typedef struct BoidBrainData BoidBrainData

Function Documentation

void boid_body ( BoidBrainData bbd,
struct ParticleData pa 
)

* gather apparent gravity to r_ve */

* raise boid it's size from surface */

* remove normal component from velocity */

Definition at line 1081 of file boids.c.

References BoidData::acc, add_v3_v3(), angle(), ParticleKey::ave, axis_angle_to_quat(), BoidSettings::banking, BLI_frand(), ParticleData::boid, BOID_ALLOW_FLIGHT, BOID_ALLOW_LAND, boid_climb(), boid_find_ground(), boid_goal_signed_dist(), ParticleSettings::boids, ParticleKey::co, ParticleSimulationData::colliders, copy_particle_key(), copy_qt_qt(), copy_v2_v2(), copy_v3_v3(), cross_v3_v3v3(), ParticleSettings::dampfac, BoidParticle::data, BoidBrainData::dfra, dot_v2v2(), dot_v3v3(), eBoidMode_Climbing, eBoidMode_Falling, eBoidMode_InAir, eBoidMode_Liftoff, eBoidMode_OnLand, ParticleSettings::effector_weights, ParticleSystem::effectors, ELEM, ParticleSettings::flag, BoidBrainData::goal_co, BoidBrainData::goal_nor, BoidBrainData::goal_ob, PhysicsSettings::gravity, BoidParticle::gravity, BoidParticle::ground, BoidSettings::height, BoidSettings::land_stick_force, BoidSettings::landing_smoothness, len_v3(), length(), madd_v3_v3fl(), madd_v3_v3v3fl(), ParticleSettings::mass, mat3_to_quat_is_ok(), MAX2, BoidValues::max_acc, BoidValues::max_ave, BoidValues::max_speed, MIN2, BoidValues::min_speed, BoidData::mode, mul_qt_v3(), mul_v2_fl(), mul_v3_fl(), negate_v3(), negate_v3_v3(), normalize_v2(), normalize_v3(), normalize_v3_v3(), NULL, BoidSettings::options, BoidBrainData::part, PART_SIZEMASS, pd_point_from_particle(), pdDoEffectors(), Scene::physics_settings, BoidSettings::pitch, ParticleData::prev_state, project_v3_v3v3(), ParticleSimulationData::psys, psys_uses_gravity(), MakeCursor::root, ParticleKey::rot, saacos(), sasqrt(), ParticleSimulationData::scene, set_boid_values(), BoidBrainData::sim, ParticleData::size, ParticleData::state, sub_v3_v3v3(), BoidBrainData::timestep, simple_enum_gen::val, ParticleKey::vel, BoidBrainData::wanted_co, and BoidBrainData::wanted_speed.

Referenced by dynamics_step().

void boid_brain ( BoidBrainData bbd,
int  p,
struct ParticleData pa 
)
BoidSettings* boid_copy_settings ( BoidSettings boids)
void boid_default_settings ( BoidSettings boids)
BoidState* boid_duplicate_state ( BoidSettings boids,
BoidState state 
)
void boid_free_settings ( BoidSettings boids)
BoidState* boid_get_current_state ( BoidSettings boids)
BoidRule* boid_new_rule ( int  type)
BoidState* boid_new_state ( BoidSettings boids)
void boids_precalc_rules ( struct ParticleSettings part,
float  cfra 
)