Searched defs:attractors (Results 1 - 1 of 1) sorted by relevance

/external/chromium_org/native_client_sdk/src/examples/demo/flock/
H A Dgoose.cc24 // The distance at which attractors have effect on a goose's direction.
49 const std::vector<Vector2>& attractors,
52 Vector2 acceleration = DesiredVector(geese, attractors);
77 const std::vector<Vector2>& attractors) {
119 // Compute the effect of the attractors and blend this in with the flock
122 for (size_t i = 0; i < attractors.size(); ++i) {
124 attractors[i], location_);
48 SimulationTick(const std::vector<Goose>& geese, const std::vector<Vector2>& attractors, const pp::Rect& flock_box) argument
76 DesiredVector(const std::vector<Goose>& geese, const std::vector<Vector2>& attractors) argument

Completed in 87 milliseconds