private native void setMaxAngMotorForce(long objectId, float value);
@Override
public void write(JmeExporter ex) throws IOException {
super.write(ex);
OutputCapsule capsule = ex.getCapsule(this);
//TODO: standard values..
capsule.write(getDampingDirAng(), "dampingDirAng", 0f);
capsule.write(getDampingDirLin(), "dampingDirLin", 0f);
capsule.write(getDampingLimAng(), "dampingLimAng", 0f);
capsule.write(getDampingLimLin(), "dampingLimLin", 0f);
capsule.write(getDampingOrthoAng(), "dampingOrthoAng", 0f);
capsule.write(getDampingOrthoLin(), "dampingOrthoLin", 0f);
capsule.write(getLowerAngLimit(), "lowerAngLimit", 0f);
capsule.write(getLowerLinLimit(), "lowerLinLimit", 0f);
capsule.write(getMaxAngMotorForce(), "maxAngMotorForce", 0f);
capsule.write(getMaxLinMotorForce(), "maxLinMotorForce", 0f);
capsule.write(isPoweredAngMotor(), "poweredAngMotor", false);
capsule.write(isPoweredLinMotor(), "poweredLinMotor", false);
capsule.write(getRestitutionDirAng(), "restitutionDirAng", 0f);
capsule.write(getRestitutionDirLin(), "restitutionDirLin", 0f);
capsule.write(getRestitutionLimAng(), "restitutionLimAng", 0f);
capsule.write(getRestitutionLimLin(), "restitutionLimLin", 0f);
capsule.write(getRestitutionOrthoAng(), "restitutionOrthoAng", 0f);
capsule.write(getRestitutionOrthoLin(), "restitutionOrthoLin", 0f);
capsule.write(getSoftnessDirAng(), "softnessDirAng", 0f);
capsule.write(getSoftnessDirLin(), "softnessDirLin", 0f);
capsule.write(getSoftnessLimAng(), "softnessLimAng", 0f);
capsule.write(getSoftnessLimLin(), "softnessLimLin", 0f);
capsule.write(getSoftnessOrthoAng(), "softnessOrthoAng", 0f);
capsule.write(getSoftnessOrthoLin(), "softnessOrthoLin", 0f);
capsule.write(getTargetAngMotorVelocity(), "targetAngMotorVelicoty", 0f);
capsule.write(getTargetLinMotorVelocity(), "targetLinMotorVelicoty", 0f);
capsule.write(getUpperAngLimit(), "upperAngLimit", 0f);
capsule.write(getUpperLinLimit(), "upperLinLimit", 0f);
capsule.write(useLinearReferenceFrameA, "useLinearReferenceFrameA", false);
}