Home
last modified time | relevance | path

Searched refs:velocity (Results 1 – 25 of 47) sorted by relevance

12

/external/replicaisland/src/com/replica/replicaisland/
DNPCAnimationComponent.java125 final Vector2 velocity = parentObject.getVelocity(); in shouldFall() local
126 if (velocity.y < FALL_SPEED_THRESHOLD) { in shouldFall()
137 final Vector2 velocity = parentObject.getVelocity(); in shouldJump() local
138 if (velocity.y > JUMP_SPEED_THRESHOLD) { in shouldJump()
148 final Vector2 velocity = parentObject.getVelocity(); in shouldRun() local
149 if (Math.abs(velocity.x) >= RUN_SPEED_THRESHOLD) { in shouldRun()
158 final Vector2 velocity = parentObject.getVelocity(); in shouldMove() local
161 if ((velocity.x < 0.0f && parentObject.touchingLeftWall()) in shouldMove()
162 || (velocity.x > 0.0f && parentObject.touchingRightWall())) { in shouldMove()
193 final Vector2 velocity = parentObject.getVelocity(); in idle() local
[all …]
DInterpolator.java106 private float calculateAcceleration(float velocity, float acceleration, float target) { in calculateAcceleration() argument
107 if (Math.abs(velocity - target) < 0.0001f) { in calculateAcceleration()
110 } else if (velocity > target) { in calculateAcceleration()
DPhysicsComponent.java129 protected void resolveCollision(Vector2 velocity, Vector2 impulse, Vector2 opposingNormal, in resolveCollision() argument
139 Vector2 relativeVelocity = vectorPool.allocate(velocity); in resolveCollision()
169 protected void resolveCollision(Vector2 velocity, Vector2 impulse, Vector2 opposingNormal, in resolveCollision() argument
177 Vector2 entity1Velocity = vectorPool.allocate(velocity); in resolveCollision()
DGameObject.java172 public final void setVelocity(Vector2 velocity) { in setVelocity() argument
173 mVelocity.set(velocity); in setVelocity()
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/superkoalio/
DSuperKoalio.java61 final Vector2 velocity = new Vector2(); field in SuperKoalio.Koala
159 koala.velocity.y += Koala.JUMP_VELOCITY; in updateKoala()
165 koala.velocity.x = -Koala.MAX_VELOCITY; in updateKoala()
171 koala.velocity.x = Koala.MAX_VELOCITY; in updateKoala()
180 koala.velocity.add(0, GRAVITY); in updateKoala()
183 koala.velocity.x = MathUtils.clamp(koala.velocity.x, in updateKoala()
187 if (Math.abs(koala.velocity.x) < 1) { in updateKoala()
188 koala.velocity.x = 0; in updateKoala()
194 koala.velocity.scl(deltaTime); in updateKoala()
202 if (koala.velocity.x > 0) { in updateKoala()
[all …]
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/utils/
DFirstPersonCameraController.java37 private float velocity = 5; field in FirstPersonCameraController
59 public void setVelocity (float velocity) { in setVelocity() argument
60 this.velocity = velocity; in setVelocity()
86 tmp.set(camera.direction).nor().scl(deltaTime * velocity); in update()
90 tmp.set(camera.direction).nor().scl(-deltaTime * velocity); in update()
94 tmp.set(camera.direction).crs(camera.up).nor().scl(-deltaTime * velocity); in update()
98 tmp.set(camera.direction).crs(camera.up).nor().scl(deltaTime * velocity); in update()
102 tmp.set(camera.up).nor().scl(deltaTime * velocity); in update()
106 tmp.set(camera.up).nor().scl(-deltaTime * velocity); in update()
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletDynamics/ConstraintSolver/
DbtSolverBody.h137 …CE_INLINE void getVelocityInLocalPointNoDelta(const btVector3& rel_pos, btVector3& velocity ) const in ATTRIBUTE_ALIGNED16()
140velocity = m_linearVelocity + m_externalForceImpulse + (m_angularVelocity+m_externalTorqueImpulse)… in ATTRIBUTE_ALIGNED16()
142 velocity.setValue(0,0,0); in ATTRIBUTE_ALIGNED16()
146 …E_INLINE void getVelocityInLocalPointObsolete(const btVector3& rel_pos, btVector3& velocity ) const in ATTRIBUTE_ALIGNED16()
149velocity = m_linearVelocity+m_deltaLinearVelocity + (m_angularVelocity+m_deltaAngularVelocity).cro… in ATTRIBUTE_ALIGNED16()
151 velocity.setValue(0,0,0); in ATTRIBUTE_ALIGNED16()
243 … void internalGetVelocityInLocalPointObsolete(const btVector3& rel_pos, btVector3& velocity ) const in ATTRIBUTE_ALIGNED16()
245velocity = m_linearVelocity+m_deltaLinearVelocity + (m_angularVelocity+m_deltaAngularVelocity).cro… in ATTRIBUTE_ALIGNED16()
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/emitter/template/
DVelocityTest.java24 import org.apache.velocity.Template;
25 import org.apache.velocity.VelocityContext;
26 import org.apache.velocity.app.VelocityEngine;
27 import org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader;
/external/libgdx/extensions/gdx-bullet/jni/swig-src/dynamics/com/badlogic/gdx/physics/bullet/dynamics/
DbtSolverBody.java178 public void getVelocityInLocalPointNoDelta(Vector3 rel_pos, Vector3 velocity) { in getVelocityInLocalPointNoDelta() argument
179 DynamicsJNI.btSolverBody_getVelocityInLocalPointNoDelta(swigCPtr, this, rel_pos, velocity); in getVelocityInLocalPointNoDelta()
182 public void getVelocityInLocalPointObsolete(Vector3 rel_pos, Vector3 velocity) { in getVelocityInLocalPointObsolete() argument
183 DynamicsJNI.btSolverBody_getVelocityInLocalPointObsolete(swigCPtr, this, rel_pos, velocity); in getVelocityInLocalPointObsolete()
226 public void internalGetVelocityInLocalPointObsolete(Vector3 rel_pos, Vector3 velocity) { in internalGetVelocityInLocalPointObsolete() argument
227 …ynamicsJNI.btSolverBody_internalGetVelocityInLocalPointObsolete(swigCPtr, this, rel_pos, velocity); in internalGetVelocityInLocalPointObsolete()
DbtCharacterControllerInterface.java66 public void setVelocityForTimeInterval(Vector3 velocity, float timeInterval) { in setVelocityForTimeInterval() argument
67 …DynamicsJNI.btCharacterControllerInterface_setVelocityForTimeInterval(swigCPtr, this, velocity, ti… in setVelocityForTimeInterval()
DbtGeneric6DofSpring2Constraint.java212 public void setTargetVelocity(int index, float velocity) { in setTargetVelocity() argument
213 DynamicsJNI.btGeneric6DofSpring2Constraint_setTargetVelocity(swigCPtr, this, index, velocity); in setTargetVelocity()
/external/sonivox/jet_tools/JetCreator/
Dmidifile.py395 def __init__ (self, ticks, seq, channel, note, velocity): argument
402 self.velocity = velocity
408 velocity = ReadByte(stream)
412 return NoteOffEvent(ticks, seq, channel, note, velocity)
415 if self.velocity > 0:
416 self.WriteRunningStatus(stream, track, filters, NOTE_ON, self.note, self.velocity)
418 self.WriteRunningStatus(stream, track, filters, NOTE_ON, self.note, self.velocity)
422 return '%s: ch=%d n=%d v=%d' % (self.name, self.channel, self.note, self.velocity)
428 def __init__ (self, ticks, seq, channel, note, velocity, note_length, note_off_velocity): argument
435 self.velocity = velocity
[all …]
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletCollision/BroadphaseCollision/
DbtDbvtBroadphase.cpp307 btVector3 velocity(((proxy->m_aabbMax-proxy->m_aabbMin)/2)*m_prediction); in setAabb() local
308 if(delta[0]<0) velocity[0]=-velocity[0]; in setAabb()
309 if(delta[1]<0) velocity[1]=-velocity[1]; in setAabb()
310 if(delta[2]<0) velocity[2]=-velocity[2]; in setAabb()
313 m_sets[0].update(proxy->leaf,aabb,velocity,DBVT_BP_MARGIN) in setAabb()
315 m_sets[0].update(proxy->leaf,aabb,velocity) in setAabb()
/external/sonivox/arm-wt-22k/lib_src/
Deas_dlssynth.c185 …Voice, const S_DLS_ARTICULATION *pDLSArt, S_SYNTH_CHANNEL *pChannel, EAS_I32 gain, EAS_U8 velocity) in DLS_UpdateGain() argument
232 temp = velocity << 8; in DLS_UpdateGain()
281 cutoff += (pVoice->velocity * pDLSArt->velToFc) >> 7; in DLS_UpdateFilter()
337 …(EAS_I16) DLS_UpdateGain(pWTVoice, pDLSArt, pChannel, pDLSRegion->wtRegion.gain, pVoice->velocity); in DLS_StartVoice()
414 …nTarget = DLS_UpdateGain(pWTVoice, pDLSArt, pChannel, pDLSRegion->wtRegion.gain, pVoice->velocity); in DLS_UpdateVoice()
494 temp = pEnvParams->attackTime + ((pEnvParams->velToAttack * pVoice->velocity) >> 7); in DLS_UpdateEnvelope()
Deas_voicemgt.c182 pVoice->velocity = pVoice->nextVelocity = DEFAULT_VELOCITY; in InitVoice()
1271 … S_SYNTH *pSynth, EAS_I32 voiceNum, EAS_U8 channel, EAS_U8 note, EAS_U8 velocity, EAS_U16 regionIn… in VMStolenVoice() argument
1285 pVoice->nextVelocity = velocity; in VMStolenVoice()
1410 pVoice->velocity = pVoice->nextVelocity; in VMRetargetStolenVoice()
1535 …CE_MGR *pVoiceMgr, S_SYNTH *pSynth, EAS_U8 channel, EAS_U8 note, EAS_U8 velocity, EAS_U16 regionIn… in VMCheckPolyphonyLimiting() argument
1594 VMStolenVoice(pVoiceMgr, pSynth, oldestVoiceNum, channel, note, velocity, regionIndex); in VMCheckPolyphonyLimiting()
1610 …CE_MGR *pVoiceMgr, S_SYNTH *pSynth, EAS_U8 channel, EAS_U8 note, EAS_U8 velocity, EAS_U16 regionIn… in VMStartVoice() argument
1660 …if (VMCheckPolyphonyLimiting(pVoiceMgr, pSynth, channel, note, velocity, regionIndex, lowVoice, hi… in VMStartVoice()
1694 pVoiceMgr->voices[voiceNum].velocity = velocity; in VMStartVoice()
1713 VMStolenVoice(pVoiceMgr, pSynth, voiceNum, channel, note, velocity, regionIndex); in VMStartVoice()
[all …]
Deas_vm_protos.h182 …MStartNote (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, EAS_U8 channel, EAS_U8 note, EAS_U8 velocity);
234 …CE_MGR *pVoiceMgr, S_SYNTH *pSynth, EAS_U8 channel, EAS_U8 note, EAS_U8 velocity, EAS_U16 regionIn…
256 … VMStopNote (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, EAS_U8 channel, EAS_U8 key, EAS_U8 velocity);
Deas_otadata.h74 EAS_U8 velocity; /* current volume */ member
Deas_ota.c507 … VMStartNote(pEASData->pVoiceMgr, pData->pSynth, OTA_CHANNEL, pData->note, pData->velocity); in OTA_Event()
540 pData->velocity = temp ? (EAS_U8) (temp * OTA_VEL_MUL + OTA_VEL_OFS) : 0; in OTA_Event()
864 pData->velocity = OTA_VEL_DEFAULT; in OTA_ParseHeader()
/external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/particle/
DParticleDef.java17 public final Vec2 velocity = new Vec2(); field in ParticleDef
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletDynamics/Character/
DbtCharacterControllerInterface.h33 virtual void setVelocityForTimeInterval(const btVector3& velocity, btScalar timeInterval) = 0;
DbtKinematicCharacterController.h136 virtual void setVelocityForTimeInterval(const btVector3& velocity, in ATTRIBUTE_ALIGNED16()
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g2d/
DParticleEmitter.java394 particle.velocity = velocityValue.newLowValue(); in activateParticle()
396 if (!velocityValue.isRelative()) particle.velocityDiff -= particle.velocity; in activateParticle()
538 …float velocity = (particle.velocity + particle.velocityDiff * velocityValue.getScale(percent)) * d… in updateParticle() local
543 velocityX = velocity * MathUtils.cosDeg(angle); in updateParticle()
544 velocityY = velocity * MathUtils.sinDeg(angle); in updateParticle()
551 velocityX = velocity * particle.angleCos; in updateParticle()
552 velocityY = velocity * particle.angleSin; in updateParticle()
1004 protected float velocity, velocityDiff; field in ParticleEmitter.Particle
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletSoftBody/
DbtSoftBody.h435 btVector3 velocity(const btVector3& rpos) const in velocity() function
788 void addVelocity( const btVector3& velocity);
791 void setVelocity( const btVector3& velocity);
794 void addVelocity( const btVector3& velocity,
895 void setWindVelocity( const btVector3 &velocity );
/external/libgdx/extensions/gdx-bullet/jni/swig-src/collision/com/badlogic/gdx/physics/bullet/collision/
DbtDbvt.java549 public boolean update(btDbvtNode leaf, btDbvtAabbMm volume, Vector3 velocity, float margin) { in update() argument
550 …Ptr, this, btDbvtNode.getCPtr(leaf), leaf, btDbvtAabbMm.getCPtr(volume), volume, velocity, margin); in update()
553 public boolean update(btDbvtNode leaf, btDbvtAabbMm volume, Vector3 velocity) { in update() argument
554 …_4(swigCPtr, this, btDbvtNode.getCPtr(leaf), leaf, btDbvtAabbMm.getCPtr(volume), volume, velocity); in update()
/external/sonivox/arm-wt-22k/host_src/
Deas_types.h241 EAS_U8 velocity; member

12