Home
last modified time | relevance | path

Searched refs:getVelocity (Results 1 – 18 of 18) sorted by relevance

/external/replicaisland/src/com/replica/replicaisland/
DNPCComponent.java121 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 …]
DNPCAnimationComponent.java125 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()
DPlayerComponent.java174 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()
DSimplePhysicsComponent.java44 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()
DMovementComponent.java42 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()
DGenericAnimationComponent.java37 if (parentObject.facingDirection.x != 0.0f && parentObject.getVelocity().x != 0.0f) { in update()
38 parentObject.facingDirection.x = Utils.sign(parentObject.getVelocity().x); in update()
DSleeperComponent.java85 if (parentObject.touchingGround() && parentObject.getVelocity().y < 0.0f) { in update()
88 parentObject.getVelocity().zero(); in update()
DGravityComponent.java44 ((GameObject) parent).getVelocity().add(mScaledGravity); in update()
DPatrolComponent.java194 … if (Utils.sign(parentObject.getTargetVelocity().x) != Utils.sign(parentObject.getVelocity().x)) { in update()
242 parentObject.getVelocity().zero(); in updateAttack()
DAnimationComponent.java111 final float velocityX = parentObject.getVelocity().x; in update()
112 final float velocityY = parentObject.getVelocity().y; in update()
DOrbitalMagnetComponent.java84 final Vector2 targetVelocity = target.getVelocity(); in applyMagnetism()
DEnemyAnimationComponent.java65 final float velocityX = parentObject.getVelocity().x; in update()
DGameObject.java168 public final Vector2 getVelocity() { in getVelocity() method in GameObject
DLaunchProjectileComponent.java162 object.getVelocity().set(mWorkingVector); in launch()
DGhostComponent.java116 && parentObject.getVelocity().y <= 0.0f in update()
DCameraSystem.java129 if (mBias.length2() > 0.0f && mTarget.getVelocity().length2() > 1.0f) { in update()
DPhysicsComponent.java60 final Vector2 currentVelocity = parentObject.getVelocity(); in update()
DGameObjectFactory.java2115 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;