Example usage for com.badlogic.gdx.physics.box2d.joints RevoluteJoint getMaxMotorTorque

List of usage examples for com.badlogic.gdx.physics.box2d.joints RevoluteJoint getMaxMotorTorque

Introduction

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

Prototype

public float getMaxMotorTorque() 

Source Link

Usage

From source file:org.ams.physics.things.def.DefParser.java

License:Open Source License

public static HingeDef hingeToDefinition(Hinge hinge) {
    HingeDef hingeDef = new HingeDef();
    RevoluteJoint joint = hinge.getJoint();

    jointToDefinition(hinge, hingeDef);//from w w w  . j  a  va 2s . c  o m

    hingeDef.enableLimit = joint.isLimitEnabled();
    hingeDef.enableMotor = joint.isMotorEnabled();
    hingeDef.lowerLimit = joint.getLowerLimit();
    hingeDef.upperLimit = joint.getUpperLimit();
    hingeDef.motorSpeed = joint.getMotorSpeed();
    hingeDef.maxMotorTorque = joint.getMaxMotorTorque();

    return hingeDef;
}