Searched refs:targetVelocity (Results 1 – 3 of 3) sorted by relevance
84 final Vector2 targetVelocity = target.getVelocity(); in applyMagnetism() local89 targetVelocity.subtract(mVelocity); in applyMagnetism()91 mDelta.add(targetVelocity); in applyMagnetism()117 final float speed = targetVelocity.length(); in applyMagnetism()118 targetVelocity.add(mVelocity); in applyMagnetism()119 if (targetVelocity.length2() > (speed * speed)) { in applyMagnetism()120 targetVelocity.normalize(); in applyMagnetism()121 targetVelocity.multiply(speed); in applyMagnetism()
92 private boolean passedTarget(float oldVelocity, float newVelocity, float targetVelocity) { in passedTarget() argument95 if (oldVelocity < targetVelocity && newVelocity > targetVelocity) { in passedTarget()97 } else if (oldVelocity > targetVelocity && newVelocity < targetVelocity) { in passedTarget()
180 public final void setTargetVelocity(Vector2 targetVelocity) { in setTargetVelocity() argument181 mTargetVelocity.set(targetVelocity); in setTargetVelocity()