Home
last modified time | relevance | path

Searched refs:mWorkingVector (Results 1 – 2 of 2) sorted by relevance

/external/replicaisland/src/com/replica/replicaisland/
DLaunchProjectileComponent.java49 private Vector2 mWorkingVector; field in LaunchProjectileComponent
57 mWorkingVector = new Vector2(); in LaunchProjectileComponent()
150 mWorkingVector.set(1.0f, 1.0f); in launch()
153 mWorkingVector.x = (float)Math.sin(angle); in launch()
154 mWorkingVector.y = (float)Math.cos(angle); in launch()
155 if (Utils.close(mWorkingVector.length2(), 0.0f)) { in launch()
156 mWorkingVector.set(1.0f, 1.0f); in launch()
159 mWorkingVector.x *= flip ? -mVelocityX : mVelocityX; in launch()
160 mWorkingVector.y *= mVelocityY; in launch()
162 object.getVelocity().set(mWorkingVector); in launch()
[all …]
DPatrolComponent.java40 Vector2 mWorkingVector; field in PatrolComponent
46 mWorkingVector = new Vector2(); in PatrolComponent()
63 mWorkingVector.zero(); in reset()
223 mWorkingVector.set(parentObject.getPosition()); in updateAttack()
224 mWorkingVector.x = parentObject.getCenteredPositionX(); in updateAttack()
227 if (mWorkingVector2.distance2(mWorkingVector) < in updateAttack()