Searched refs:desired (Results 1 – 2 of 2) sorted by relevance
70 Vector2D desired = cohesion.copy(); in flock() local71 desired.sub(mPosition); in flock()72 float d = desired.magnitude(); in flock()74 desired.normalize(); in flock()75 desired.scale(MAX_SPEED * ((d < 100.0f) ? d / 100.0f : 1)); in flock()76 desired.sub(mVelocity); in flock()77 desired.limit(MAX_FORCE); in flock()78 mAcceleration.add(desired); in flock()
93314 private static int desired(