Examples of negateLocal()


Examples of com.ardor3d.math.Vector3.negateLocal()

        direction = direction.set(dl.getDirection());
        final double distance = Math.max(radius, _minimumLightDistance);

        final Vector3 tmpVec = Vector3.fetchTempInstance();
        tmpVec.set(direction);
        tmpVec.negateLocal();
        tmpVec.multiplyLocal(distance);
        tmpVec.addLocal(center);

        // temporary location
        shadowCam.setLocation(tmpVec);
View Full Code Here

Examples of org.jbox2d.common.Vec2.negateLocal()

            pAToShape.mulLocal(FORCE_MAGNITUDE);
            dc.getBody().applyForce(pAToShape,shapePos);
          }
        }else if(Vec2.dot(pBToShape, vecBToA)<0){
          if(pBToShape.lengthSquared()>ASBOTXConfigs.E_SQUARE){
            pBToShape.negateLocal();
            pBToShape.normalize();
            pBToShape.mulLocal(FORCE_MAGNITUDE);
            dc.getBody().applyForce(pBToShape,shapePos);
          }
        }else{
View Full Code Here

Examples of org.jbox2d.common.Vec2.negateLocal()

      K.ex.x = mA + mB + iA * rA.y * rA.y + iB * rB.y * rB.y;
      K.ex.y = -iA * rA.x * rA.y - iB * rB.x * rB.y;
      K.ey.x = K.ex.y;
      K.ey.y = mA + mB + iA * rA.x * rA.x + iB * rB.x * rB.x;
      K.solveToOut(C, impulse);
      impulse.negateLocal();

      cA.x -= mA * impulse.x;
      cA.y -= mA * impulse.y;
      aA -= iA * Vec2.cross(rA, impulse);

View Full Code Here

Examples of org.jbox2d.common.Vec2.negateLocal()

      Vec2.crossToOutUnsafe(wA, m_rA, temp);
      Cdot1.addLocal(vB).subLocal(vA).subLocal(temp);

      final Vec2 impulse1 = P;
      Mat33.mul22ToOutUnsafe(m_mass, Cdot1, impulse1);
      impulse1.negateLocal();

      m_impulse.x += impulse1.x;
      m_impulse.y += impulse1.y;

      vA.x -= mA * P.x;
 
View Full Code Here

Examples of org.jbox2d.common.Vec2.negateLocal()

      positionError = C1.length();
      angularError = 0.0f;

      K.solve22ToOut(C1, P);
      P.negateLocal();

      cA.x -= mA * P.x;
      cA.y -= mA * P.y;
      aA -= iA * Vec2.cross(rA, P);

View Full Code Here

Examples of org.jbox2d.common.Vec2.negateLocal()

      Cdot.y =
          vB.y + wB * m_rB.x - vA.y - wA * m_rA.x + inv_h * m_correctionFactor * m_linearError.y;

      final Vec2 impulse = temp;
      Mat22.mulToOutUnsafe(m_linearMass, Cdot, impulse);
      impulse.negateLocal();
      final Vec2 oldImpulse = pool.popVec2();
      oldImpulse.set(m_linearImpulse);
      m_linearImpulse.addLocal(impulse);

      float maxImpulse = h * m_maxForce;
 
View Full Code Here

Examples of org.jbox2d.common.Vec2.negateLocal()

      Vec2.crossToOutUnsafe(wB, m_rB, Cdot);
      Cdot.addLocal(vB).subLocal(vA).subLocal(temp);

      final Vec2 impulse = pool.popVec2();
      Mat22.mulToOutUnsafe(m_linearMass, Cdot, impulse);
      impulse.negateLocal();


      final Vec2 oldImpulse = pool.popVec2();
      oldImpulse.set(m_linearImpulse);
      m_linearImpulse.addLocal(impulse);
View Full Code Here

Examples of org.jbox2d.common.Vec2.negateLocal()

      Vec2.crossToOut(wB, rB, Cdot);
      Cdot.addLocal(vB).subLocal(vA).subLocal(temp);
     
      final Vec2 impulse = pool.popVec2();
      Mat22.mulToOut(m_linearMass, Cdot, impulse);
      impulse.negateLocal();
     
     
      final Vec2 oldImpulse = pool.popVec2();
      oldImpulse.set(m_linearImpulse);
      m_linearImpulse.addLocal(impulse);
View Full Code Here

Examples of org.jbox2d.common.Vec2.negateLocal()

      float k22 = i1 + i2;
     
      m_K.col1.set(k11, k12, 0.0f);
      m_K.col2.set(k12, k22, 0.0f);
     
      m_K.solve22ToOut(C1.negateLocal(), temp);
      C1.negateLocal();
     
      impulse.x = temp.x;
      impulse.y = temp.y;
      impulse.z = 0.0f;
View Full Code Here

Examples of org.jbox2d.common.Vec2.negateLocal()

     
      m_K.col1.set(k11, k12, 0.0f);
      m_K.col2.set(k12, k22, 0.0f);
     
      m_K.solve22ToOut(C1.negateLocal(), temp);
      C1.negateLocal();
     
      impulse.x = temp.x;
      impulse.y = temp.y;
      impulse.z = 0.0f;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.