HomeSort by relevance Sort by last modified time
    Searched full:desired_direction (Results 1 - 1 of 1) sorted by null

  /external/chromium_org/native_client_sdk/src/examples/demo/flock/
goose.cc 150 Vector2 desired_direction = Vector2::Difference(target, location_); local
151 double distance = desired_direction.Magnitude();
154 desired_direction.Normalize();
160 desired_direction.Scale(kMaxSpeed * distance / 100.0);
162 desired_direction.Scale(kMaxSpeed);
164 new_direction = Vector2::Difference(desired_direction, velocity_);

Completed in 37 milliseconds