}
@Override
public void read(JmeImporter im) throws IOException {
super.read(im);
InputCapsule capsule = im.getCapsule(this);
float dampingDirAng = capsule.readFloat("dampingDirAng", 0f);
float dampingDirLin = capsule.readFloat("dampingDirLin", 0f);
float dampingLimAng = capsule.readFloat("dampingLimAng", 0f);
float dampingLimLin = capsule.readFloat("dampingLimLin", 0f);
float dampingOrthoAng = capsule.readFloat("dampingOrthoAng", 0f);
float dampingOrthoLin = capsule.readFloat("dampingOrthoLin", 0f);
float lowerAngLimit = capsule.readFloat("lowerAngLimit", 0f);
float lowerLinLimit = capsule.readFloat("lowerLinLimit", 0f);
float maxAngMotorForce = capsule.readFloat("maxAngMotorForce", 0f);
float maxLinMotorForce = capsule.readFloat("maxLinMotorForce", 0f);
boolean poweredAngMotor = capsule.readBoolean("poweredAngMotor", false);
boolean poweredLinMotor = capsule.readBoolean("poweredLinMotor", false);
float restitutionDirAng = capsule.readFloat("restitutionDirAng", 0f);
float restitutionDirLin = capsule.readFloat("restitutionDirLin", 0f);
float restitutionLimAng = capsule.readFloat("restitutionLimAng", 0f);
float restitutionLimLin = capsule.readFloat("restitutionLimLin", 0f);
float restitutionOrthoAng = capsule.readFloat("restitutionOrthoAng", 0f);
float restitutionOrthoLin = capsule.readFloat("restitutionOrthoLin", 0f);
float softnessDirAng = capsule.readFloat("softnessDirAng", 0f);
float softnessDirLin = capsule.readFloat("softnessDirLin", 0f);
float softnessLimAng = capsule.readFloat("softnessLimAng", 0f);
float softnessLimLin = capsule.readFloat("softnessLimLin", 0f);
float softnessOrthoAng = capsule.readFloat("softnessOrthoAng", 0f);
float softnessOrthoLin = capsule.readFloat("softnessOrthoLin", 0f);
float targetAngMotorVelicoty = capsule.readFloat("targetAngMotorVelicoty", 0f);
float targetLinMotorVelicoty = capsule.readFloat("targetLinMotorVelicoty", 0f);
float upperAngLimit = capsule.readFloat("upperAngLimit", 0f);
float upperLinLimit = capsule.readFloat("upperLinLimit", 0f);
useLinearReferenceFrameA = capsule.readBoolean("useLinearReferenceFrameA", false);
createJoint();
setDampingDirAng(dampingDirAng);
setDampingDirLin(dampingDirLin);