Examples of Joint


Examples of com.sencha.gxt.widget.core.client.tree.Tree.Joint

  protected Joint calculateJoint(M model) {
    if (model == null) {
      return Joint.NONE;
    }
    TreeNode<M> node = findNode(model);
    Joint joint = Joint.NONE;
    if (node == null) {
      return joint;
    }
    if (!isLeaf(model)) {
      boolean children = true;
View Full Code Here

Examples of eas.simulation.spatial.sim2D.physicalSimulation.physicsEngine.Joint

            {
                AgentType b = bodies.get(i);
                b.startFrame();
            }
            for (int i = 0; i < joints.size(); ++i) {
                Joint j = joints.get(i);
                j.getBody1().setIsResting(false);
                j.getBody2().setIsResting(false);
            }
        }
       
        broadPhase(dt);

        for (int i = 0; i < bodies.size(); ++i)
        {
            AgentType b = bodies.get(i);

            if (b.getInvMass() == 0.0f) {
                continue;
            }
            if (b.isResting() && restingBodyDetection) {
                continue;
            }

            Vector2f temp = new Vector2f(b.getForce());
            temp.scale(b.getInvMass());
            if (b.getGravityEffected()) {
                temp.add(gravity);
            }
            temp.scale(dt);
           
            b.adjustVelocity(temp);
           
            Vector2f damping = new Vector2f(b.getVelocity());
            damping.scale(-b.getDamping() * b.getInvMass());
            b.adjustVelocity(damping);
           
            b.adjustAngularVelocity(dt * b.getInvI() * b.getTorque());
            b.adjustAngularVelocity(-b.getAngularVelocity() * b.getInvI() * b.getRotDamping());
        }

        for (int i=0;i<arbiters.size();i++) {
            Arbiter<AgentType> arb = arbiters.get(i);
            if (!restingBodyDetection || !arb.hasRestingPair()) {
                arb.preStep(invDT, dt, damping);
            }
        }

        for (int i = 0; i < joints.size(); ++i) {
            Joint j = joints.get(i);
            j.preStep(invDT);  
        }

        for (int i = 0; i < iterations; ++i)
        {
            for (int k=0;k<arbiters.size();k++) {
                Arbiter<AgentType> arb = arbiters.get(k);
                if (!restingBodyDetection || !arb.hasRestingPair()) {
                    arb.applyImpulse();
                } else {
                    arb.getBody1().collided(arb.getBody2());
                    arb.getBody2().collided(arb.getBody1());
                }
            }
           
            for (int k=0;k<joints.size();++k) {
                Joint j = joints.get(k);
                j.applyImpulse();
            }
        }
       
       
        for (int i=0;i < bodies.size(); ++i)
View Full Code Here

Examples of net.br410bury.motion.Joint

      return curr;
  }
 
  protected Joint readChild(String childName, Joint curr, boolean endSite)
  {
    Joint child;
   
    curr.addChild(child = new Joint(childName));
    child.setParent(curr);
    if(!endSite) count++;
       
    return child;
  }
View Full Code Here

Examples of net.br410bury.motion.Joint

    }
  }
 
  protected Joint readRoot(String rootname)
  {
    root = new Joint(rootname);
    root.setStartChannel(0);
   
    return root;
  }
View Full Code Here

Examples of net.br410bury.motion.Joint

   */
  public void read(String filename) throws IOException
  {
    BufferedReader in = new BufferedReader(new FileReader(filename));
    Deque<Joint> deque = new ArrayDeque<Joint>();
    Joint curr, child;
    String[] elements;
    String line;
   
    channels = 0;
    count = 1;
View Full Code Here

Examples of net.phys2d.raw.Joint

    }
   
    JointList joints = world.getJoints();
   
    for (int i=0;i<joints.size();i++) {
      Joint joint = joints.get(i);
     
      drawJoint(g, joint);
    }
   
    ArbiterList arbs = world.getArbiters();
View Full Code Here

Examples of net.phys2d.raw.Joint

    world.add(body3);
    Body body4 = new Body("Mover3", new Circle(15), 10.0f);
    body4.setPosition(250.0f, 70.0f);
    world.add(body4);
   
    Joint j = new FixedJoint(body2,body3);
    world.add(j);
    j = new FixedJoint(body3,body4);
    world.add(j);
    j = new FixedJoint(body2,body5);
    world.add(j);
View Full Code Here

Examples of org.jbox2d.dynamics.joints.Joint

    assert (isLocked() == false);
    if (isLocked()) {
      return null;
    }

    Joint j = Joint.create(this, def);

    // Connect to the world list.
    j.m_prev = null;
    j.m_next = m_jointList;
    if (m_jointList != null) {
      m_jointList.m_prev = j;
    }
    m_jointList = j;
    ++m_jointCount;

    // Connect to the bodies' doubly linked lists.
    j.m_edgeA.joint = j;
    j.m_edgeA.other = j.getBodyB();
    j.m_edgeA.prev = null;
    j.m_edgeA.next = j.getBodyA().m_jointList;
    if (j.getBodyA().m_jointList != null) {
      j.getBodyA().m_jointList.prev = j.m_edgeA;
    }
    j.getBodyA().m_jointList = j.m_edgeA;

    j.m_edgeB.joint = j;
    j.m_edgeB.other = j.getBodyA();
    j.m_edgeB.prev = null;
    j.m_edgeB.next = j.getBodyB().m_jointList;
    if (j.getBodyB().m_jointList != null) {
      j.getBodyB().m_jointList.prev = j.m_edgeB;
    }
    j.getBodyB().m_jointList = j.m_edgeB;

    Body bodyA = def.bodyA;
    Body bodyB = def.bodyB;

    // If the joint prevents collisions, then flag any contacts for filtering.
View Full Code Here

Examples of org.jbox2d.dynamics.joints.Joint

    assert (isLocked() == false);
    if (isLocked()) {
      return null;
    }

    Joint j = Joint.create(this, def);

    // Connect to the world list.
    j.m_prev = null;
    j.m_next = m_jointList;
    if (m_jointList != null) {
      m_jointList.m_prev = j;
    }
    m_jointList = j;
    ++m_jointCount;

    // Connect to the bodies' doubly linked lists.
    j.m_edgeA.joint = j;
    j.m_edgeA.other = j.getBodyB();
    j.m_edgeA.prev = null;
    j.m_edgeA.next = j.getBodyA().m_jointList;
    if (j.getBodyA().m_jointList != null) {
      j.getBodyA().m_jointList.prev = j.m_edgeA;
    }
    j.getBodyA().m_jointList = j.m_edgeA;

    j.m_edgeB.joint = j;
    j.m_edgeB.other = j.getBodyA();
    j.m_edgeB.prev = null;
    j.m_edgeB.next = j.getBodyB().m_jointList;
    if (j.getBodyB().m_jointList != null) {
      j.getBodyB().m_jointList.prev = j.m_edgeB;
    }
    j.getBodyB().m_jointList = j.m_edgeB;

    Body bodyA = def.bodyA;
    Body bodyB = def.bodyB;

    // If the joint prevents collisions, then flag any contacts for filtering.
View Full Code Here

Examples of org.jbox2d.dynamics.joints.Joint

    assert (isLocked() == false);
    if (isLocked()) {
      return null;
    }
   
    Joint j = Joint.create(this, def);
   
    // Connect to the world list.
    j.m_prev = null;
    j.m_next = m_jointList;
    if (m_jointList != null) {
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.