Example usage for com.badlogic.gdx.physics.box2d JointDef JointDef

List of usage examples for com.badlogic.gdx.physics.box2d JointDef JointDef

Introduction

In this page you can find the example usage for com.badlogic.gdx.physics.box2d JointDef JointDef.

Prototype

JointDef

Source Link

Usage

From source file:non.plugins.physics.java

public Joint joint(String type, Body a, Body b) {
    JointDef jointDef = new JointDef();

    jointDef.type = jointType(type);/*from   w  w  w. j a  va2s  .  c  om*/
    jointDef.bodyA = a;
    jointDef.bodyB = b;
    return world.createJoint(jointDef);
}