/external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/dynamics/joints/ |
WheelJoint.java | 383 float impulse = -m_springMass * (Cdot + m_bias + m_gamma * m_springImpulse); local 384 m_springImpulse += impulse; 386 P.x = impulse * m_ax.x; 387 P.y = impulse * m_ax.y; 388 float LA = impulse * m_sAx; 389 float LB = impulse * m_sBx; 403 float impulse = -m_motorMass * Cdot; local 407 m_motorImpulse = MathUtils.clamp(m_motorImpulse + impulse, -maxImpulse, maxImpulse); 408 impulse = m_motorImpulse - oldImpulse; 410 wA -= iA * impulse; 417 float impulse = -m_mass * Cdot; local 469 float impulse; local [all...] |
GearJoint.java | 366 float impulse = -m_mass * Cdot; local 367 m_impulse += impulse; 369 vA.x += (m_mA * impulse) * m_JvAC.x; 370 vA.y += (m_mA * impulse) * m_JvAC.y; 371 wA += m_iA * impulse * m_JwA; 373 vB.x += (m_mB * impulse) * m_JvBD.x; 374 vB.y += (m_mB * impulse) * m_JvBD.y; 375 wB += m_iB * impulse * m_JwB; 377 vC.x -= (m_mC * impulse) * m_JvAC.x; 378 vC.y -= (m_mC * impulse) * m_JvAC.y 485 float impulse = 0.0f; local [all...] |
PrismaticJoint.java | 91 //Clamp accumulated limit impulse. 101 //Now compute impulse to be applied: 547 float impulse = m_motorMass * (m_motorSpeed - Cdot); local 550 m_motorImpulse = MathUtils.clamp(m_motorImpulse + impulse, -maxImpulse, maxImpulse); 551 impulse = m_motorImpulse - oldImpulse; 554 P.set(m_axis).mulLocal(impulse); 555 float LA = impulse * m_a1; 556 float LB = impulse * m_a2; 677 final Vec3 impulse = pool.popVec3(); local 759 K.solve33ToOut(C.negateLocal(), impulse); local [all...] |
/external/webrtc/webrtc/modules/audio_device/ios/ |
audio_device_unittest_ios.cc | 243 // transmission and time of receiving the same impulse. 269 const int16_t impulse = std::numeric_limits<int16_t>::max(); variable 272 ptr16[i] = impulse; 283 // Avoid detection of new impulse response until a new impulse has 302 // received impulse. It is transmitted at sample 0 but can be received [all...] |
/frameworks/av/services/audioflinger/ |
AudioResamplerSinc.cpp | 299 int16_t* impulse = mImpulse; local 319 read<CHANNELS>(impulse, phaseFraction, mBuffer.i16, inputIndex); 322 read<CHANNELS>(impulse, phaseFraction, mBuffer.i16, inputIndex); 328 read<CHANNELS>(impulse, phaseFraction, mBuffer.i16, inputIndex); 336 int16_t* head = impulse + headOffset; 343 filterCoefficient<CHANNELS>(&out[outputIndex], phaseFraction, impulse, vRL); 353 read<CHANNELS>(impulse, phaseFraction, in, inputIndex); 365 mImpulse = impulse; 380 int16_t*& impulse, uint32_t& phaseFraction, 383 impulse += CHANNELS [all...] |
/external/libgdx/extensions/gdx-box2d/gdx-box2d/src/com/badlogic/gdx/physics/box2d/ |
World.java | 145 virtual void PostSolve(b2Contact* contact, const b2ContactImpulse* impulse) 148 env->CallVoidMethod(obj, postSolveID, (jlong)contact, (jlong)impulse); 981 private final ContactImpulse impulse = new ContactImpulse(this, 0); field in class:World [all...] |
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletDynamics/ConstraintSolver/ |
btConeTwistConstraint.cpp | 342 btScalar impulse = depth*tau/timeStep * jacDiagABInv - rel_vel * jacDiagABInv; local 343 m_appliedImpulse += impulse; 347 bodyA.internalApplyImpulse(normal*m_rbA.getInvMass(), m_rbA.getInvInertiaTensorWorld()*ftorqueAxis1,impulse); 348 bodyB.internalApplyImpulse(normal*m_rbB.getInvMass(), m_rbB.getInvInertiaTensorWorld()*ftorqueAxis2,-impulse); 411 btVector3 impulse = (kAxisAInv * dOmegaA - kAxisBInv * dOmegaB) / local 420 btVector3 newUnclampedAccImpulse = m_accMotorImpulse + impulse; 426 impulse = newUnclampedAccImpulse - m_accMotorImpulse; 428 m_accMotorImpulse += impulse; 431 btScalar impulseMag = impulse.length(); 432 btVector3 impulseAxis = impulse / impulseMag 450 btVector3 impulse = m_damping * m_kDamping * relVel; local 481 btVector3 impulse = m_swingAxis * impulseMag; local [all...] |
/external/replicaisland/src/com/replica/replicaisland/ |
PlayerComponent.java | 140 Vector2 impulse = pool.allocate(); local 143 impulse.set(dpad.getX(), 0.0f); 150 impulse.y = AIR_VERTICAL_IMPULSE_SPEED_FROM_GROUND; 155 impulse.y = AIR_VERTICAL_IMPULSE_SPEED * timeDelta; 165 || impulse.y > VERTICAL_IMPULSE_TOLERANCE; 171 impulse.x = (impulse.x * horziontalSpeed * timeDelta); 175 final float newSpeed = Math.abs(currentSpeed + impulse.x); 178 currentSpeed = maxHorizontalSpeed * Utils.sign(impulse.x); 181 impulse.x = (0.0f); [all...] |
/external/webrtc/webrtc/modules/audio_device/android/ |
audio_device_unittest.cc | 249 // transmission and time of receiving the same impulse. 276 const int16_t impulse = std::numeric_limits<int16_t>::max(); variable 279 ptr16[i] = impulse; 290 // Avoid detection of new impulse response until a new impulse has 310 // received impulse. It is transmitted at sample 0 but can be received [all...] |
/external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/dynamics/contacts/ |
ContactSolver.java | 158 // System.out.println("contact normal impulse: " + cp.normalImpulse); 381 // Apply contact impulse 408 // Compute normal impulse 412 // Clamp the accumulated impulse 418 // Apply contact impulse 449 // In order to account of the accumulated impulse 'a' (because of the iterative nature of 451 // that the accumulated impulse is clamped and not the incremental impulse) we change the 452 // impulse variable (x_i). 458 // a := old total impulse 872 final float impulse = K > 0.0f ? -C \/ K : 0.0f; local 972 float impulse = K > 0.0f ? -C \/ K : 0.0f; local [all...] |
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletSoftBody/ |
btSoftBody.cpp | 974 void btSoftBody::clusterVImpulse(Cluster* cluster,const btVector3& rpos,const btVector3& impulse) 976 const btVector3 li=cluster->m_imass*impulse; 977 const btVector3 ai=cluster->m_invwi*btCross(rpos,impulse); 984 void btSoftBody::clusterDImpulse(Cluster* cluster,const btVector3& rpos,const btVector3& impulse) 986 const btVector3 li=cluster->m_imass*impulse; 987 const btVector3 ai=cluster->m_invwi*btCross(rpos,impulse); 994 void btSoftBody::clusterImpulse(Cluster* cluster,const btVector3& rpos,const Impulse& impulse) 996 if(impulse.m_asVelocity) clusterVImpulse(cluster,rpos,impulse.m_velocity) 2796 btSoftBody::Impulse impulse; local 2841 btSoftBody::Impulse impulse; local 2887 btSoftBody::Impulse impulse; local 3015 const btVector3 impulse=a.m_c0*vr*a.m_influence; local 3042 const btVector3 impulse = c.m_c0 * ( (vr - (fv * c.m_c3) + (cti.m_normal * (dp * c.m_c4))) * kst ); local [all...] |
/external/libgdx/extensions/gdx-bullet/jni/swig-src/softbody/com/badlogic/gdx/physics/bullet/softbody/ |
btSoftBody.java | 4089 SoftbodyJNI.btSoftBody_clusterVImpulse(btSoftBody.Cluster.getCPtr(cluster), cluster, rpos, impulse); local 4093 SoftbodyJNI.btSoftBody_clusterDImpulse(btSoftBody.Cluster.getCPtr(cluster), cluster, rpos, impulse); local 4097 SoftbodyJNI.btSoftBody_clusterImpulse(btSoftBody.Cluster.getCPtr(cluster), cluster, rpos, btSoftBody.Impulse.getCPtr(impulse), impulse); local 4101 SoftbodyJNI.btSoftBody_clusterVAImpulse(btSoftBody.Cluster.getCPtr(cluster), cluster, impulse); local 4105 SoftbodyJNI.btSoftBody_clusterDAImpulse(btSoftBody.Cluster.getCPtr(cluster), cluster, impulse); local 4109 SoftbodyJNI.btSoftBody_clusterAImpulse(btSoftBody.Cluster.getCPtr(cluster), cluster, btSoftBody.Impulse.getCPtr(impulse), impulse); local 4113 SoftbodyJNI.btSoftBody_clusterDCImpulse(btSoftBody.Cluster.getCPtr(cluster), cluster, impulse); local [all...] |