Package org.jbox2d.dynamics.joints

Examples of org.jbox2d.dynamics.joints.JointType


//    if (mouseJoint != null){
//    world.destroyJoint(mouseJoint); 
//    }
    //FIXME this doesent remove the userData that pointed to the mousejoint!
    for (Joint joint = body.getWorld().getJointList(); joint != null; joint = joint.getNext()) {
      JointType type = joint.getType();
      switch (type) {
      case MOUSE_JOINT:
        MouseJoint mj = (MouseJoint)joint;
        if (body.equals(mj.getBody1()) || body.equals(mj.getBody2())){
          body.getWorld().destroyJoint(mj);
View Full Code Here


              if (mouseJoint != null){
                comp.setUserData("mouseJoint" + cursorID, null);
//                theWorld.destroyJoint(mouseJoint); 
                //Only destroy the joint if it isnt already (go through joint list and check)
                for (Joint joint = theWorld.getJointList(); joint != null; joint = joint.getNext()) {
                  JointType type = joint.getType();
                  switch (type) {
                  case MOUSE_JOINT:
                    MouseJoint mj = (MouseJoint)joint;
                    if (body.equals(mj.getBody1()) || body.equals(mj.getBody2())){
//                      theWorld.destroyJoint(mj);
View Full Code Here

          mouseJoint = (MouseJoint) comp.getUserData(comp.getID());
          if (mouseJoint != null){
            comp.setUserData(comp.getID(), null);
            //Only destroy the joint if it isnt already (go through joint list and check)
            for (Joint joint = world.getJointList(); joint != null; joint = joint.getNext()) {
              JointType type = joint.getType();
              switch (type) {
              case MOUSE_JOINT:
                MouseJoint mj = (MouseJoint)joint;
                if (body.equals(mj.getBody1()) || body.equals(mj.getBody2())){
                  if (mj.equals(mouseJoint)) {
View Full Code Here

TOP

Related Classes of org.jbox2d.dynamics.joints.JointType

Copyright © 2018 www.massapicom. 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.