Searched refs:mWorkingVector (Results 1 – 2 of 2) sorted by relevance
49 private Vector2 mWorkingVector; field in LaunchProjectileComponent57 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 …]
40 Vector2 mWorkingVector; field in PatrolComponent46 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()