Searched refs:getVelocity (Results 1 – 18 of 18) sorted by relevance
121 parentObject.getVelocity().x = -parentObject.facingDirection.x * HIT_IMPULSE; in update()126 if (Utils.close(parentObject.getVelocity().x, 0.0f) in update()252 if (parentObject.getVelocity().x != 0.0f) { in executeCommand()313 parentObject.getVelocity().y = mUpImpulse; in executeCommand()325 parentObject.getVelocity().y = mDownImpulse; in executeCommand()335 parentObject.getVelocity().y = 0.0f; in executeCommand()343 parentObject.getVelocity().y = 0.0f; in executeCommand()349 parentObject.getVelocity().y = mUpImpulse; in executeCommand()356 parentObject.getVelocity().y = mUpImpulse; in executeCommand()363 parentObject.getVelocity().y = mDownImpulse; in executeCommand()[all …]
125 final Vector2 velocity = parentObject.getVelocity(); in shouldFall()137 final Vector2 velocity = parentObject.getVelocity(); in shouldJump()148 final Vector2 velocity = parentObject.getVelocity(); in shouldRun()158 final Vector2 velocity = parentObject.getVelocity(); in shouldMove()193 final Vector2 velocity = parentObject.getVelocity(); in idle()219 final Vector2 velocity = parentObject.getVelocity(); in walk()256 final Vector2 velocity = parentObject.getVelocity(); in run()292 final Vector2 velocity = parentObject.getVelocity(); in shoot()303 final Vector2 velocity = parentObject.getVelocity(); in jumpStart()321 final Vector2 velocity = parentObject.getVelocity(); in jumpAir()
174 float currentSpeed = parentObject.getVelocity().x; in move()179 parentObject.getVelocity().x = (currentSpeed); in move()184 if (parentObject.getVelocity().y + impulse.y > MAX_UPWARD_SPEED in move()187 if (parentObject.getVelocity().y < MAX_UPWARD_SPEED) { in move()188 parentObject.getVelocity().y = (MAX_UPWARD_SPEED); in move()202 parentObject.getVelocity().x = (postDragSpeed); in move()381 parentObject.getVelocity().set(0.0f, 0.0f); in gotoStomp()391 parentObject.getVelocity().set(0.0f, STOMP_VELOCITY); in stateStomp()452 parentObject.getVelocity().zero(); in stateDead()459 parentObject.getVelocity().zero(); in stateDead()
44 float velocityX = parentObject.getVelocity().x + impulse.x; in update()45 float velocityY = parentObject.getVelocity().y + impulse.y; in update()65 parentObject.getVelocity().set(velocityX, velocityY); in update()
42 sInterpolator.set(object.getVelocity().x, object.getTargetVelocity().x, in update()48 sInterpolator.set(object.getVelocity().y, object.getTargetVelocity().y, in update()58 object.getVelocity().set(newVelocityX, newVelocityY); in update()
37 if (parentObject.facingDirection.x != 0.0f && parentObject.getVelocity().x != 0.0f) { in update()38 parentObject.facingDirection.x = Utils.sign(parentObject.getVelocity().x); in update()
85 if (parentObject.touchingGround() && parentObject.getVelocity().y < 0.0f) { in update()88 parentObject.getVelocity().zero(); in update()
44 ((GameObject) parent).getVelocity().add(mScaledGravity); in update()
194 … if (Utils.sign(parentObject.getTargetVelocity().x) != Utils.sign(parentObject.getVelocity().x)) { in update()242 parentObject.getVelocity().zero(); in updateAttack()
111 final float velocityX = parentObject.getVelocity().x; in update()112 final float velocityY = parentObject.getVelocity().y; in update()
84 final Vector2 targetVelocity = target.getVelocity(); in applyMagnetism()
65 final float velocityX = parentObject.getVelocity().x; in update()
168 public final Vector2 getVelocity() { in getVelocity() method in GameObject
162 object.getVelocity().set(mWorkingVector); in launch()
116 && parentObject.getVelocity().y <= 0.0f in update()
129 if (mBias.length2() > 0.0f && mTarget.getVelocity().length2() > 1.0f) { in update()
60 final Vector2 currentVelocity = parentObject.getVelocity(); in update()
2115 object.getVelocity().x = 50.0f * object.facingDirection.x;2382 object.getVelocity().x = 75.0f * object.facingDirection.x;2481 object.getVelocity().x = 25.0f * object.facingDirection.x;