Home
last modified time | relevance | path

Searched refs:targetVelocity (Results 1 – 3 of 3) sorted by relevance

/external/replicaisland/src/com/replica/replicaisland/
DOrbitalMagnetComponent.java84 final Vector2 targetVelocity = target.getVelocity(); in applyMagnetism() local
89 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()
DInterpolator.java92 private boolean passedTarget(float oldVelocity, float newVelocity, float targetVelocity) { in passedTarget() argument
95 if (oldVelocity < targetVelocity && newVelocity > targetVelocity) { in passedTarget()
97 } else if (oldVelocity > targetVelocity && newVelocity < targetVelocity) { in passedTarget()
DGameObject.java180 public final void setTargetVelocity(Vector2 targetVelocity) { in setTargetVelocity() argument
181 mTargetVelocity.set(targetVelocity); in setTargetVelocity()