Searched refs:mPreviousPosition (Results 1 – 3 of 3) sorted by relevance
21 private Vector2 mPreviousPosition; field in SimpleCollisionComponent30 mPreviousPosition = new Vector2(); in SimpleCollisionComponent()39 mPreviousPosition.zero(); in reset()50 if (mPreviousPosition.length2() > 0.0f) { in update()53 mMovementDirection.subtract(mPreviousPosition); in update()57 final boolean hit = collision.castRay(mPreviousPosition, mCurrentPosition, in update()96 … mPreviousPosition.set(parentObject.getCenteredPositionX(), parentObject.getCenteredPositionY()); in update()
27 private Vector2 mPreviousPosition; field in BackgroundCollisionComponent59 mPreviousPosition = new Vector2(); in BackgroundCollisionComponent()83 mPreviousPosition = new Vector2(); in BackgroundCollisionComponent()101 mPreviousPosition.zero(); in reset()139 if (mPreviousPosition.length2() != 0) { in update()151 mDelta.subtract(mPreviousPosition); in update()154 mPreviousCenter.add(mPreviousPosition); in update()320 mPreviousPosition.set(parentObject.getPosition()); in update()
38 private Vector2 mPreviousPosition; field in NPCComponent79 mPreviousPosition = new Vector2(); in NPCComponent()94 mPreviousPosition.zero(); in reset()209 mPreviousPosition.set(parentObject.getPosition()); in update()