@Override public void write(JmeExporter ex) throws IOException { super.write(ex); OutputCapsule cap = ex.getCapsule(this); cap.write(getDamping(), "damping", 1.0f); cap.write(getTau(), "tau", 0.3f); cap.write(getImpulseClamp(), "impulseClamp", 0f); }
/** * Serialize this joint, for example when saving to a J3O file. * * @param ex exporter (not null) * @throws IOException from exporter */ @Override public void write(JmeExporter ex) throws IOException { super.write(ex); OutputCapsule cap = ex.getCapsule(this); cap.write(getDamping(), "damping", 1.0f); cap.write(getTau(), "tau", 0.3f); cap.write(getImpulseClamp(), "impulseClamp", 0f); }
@Override public void write(JmeExporter ex) throws IOException { super.write(ex); OutputCapsule capsule = ex.getCapsule(this); capsule.write(rotA, "rotA", new Matrix3f()); capsule.write(rotB, "rotB", new Matrix3f()); capsule.write(angularOnly, "angularOnly", false); capsule.write(swingSpan1, "swingSpan1", 1e30f); capsule.write(swingSpan2, "swingSpan2", 1e30f); capsule.write(twistSpan, "twistSpan", 1e30f); }
/** * Serialize this joint, for example when saving to a J3O file. * * @param ex exporter (not null) * @throws IOException from exporter */ @Override public void write(JmeExporter ex) throws IOException { super.write(ex); OutputCapsule capsule = ex.getCapsule(this); capsule.write(rotA, "rotA", new Matrix3f()); capsule.write(rotB, "rotB", new Matrix3f()); capsule.write(angularOnly, "angularOnly", false); capsule.write(swingSpan1, "swingSpan1", 1e30f); capsule.write(swingSpan2, "swingSpan2", 1e30f); capsule.write(twistSpan, "twistSpan", 1e30f); }
public void write(JmeExporter ex) throws IOException { super.write(ex); OutputCapsule capsule = ex.getCapsule(this); capsule.write(axisA, "axisA", new Vector3f()); capsule.write(axisB, "axisB", new Vector3f()); capsule.write(angularOnly, "angularOnly", false); capsule.write(((HingeConstraint) constraint).getLowerLimit(), "lowerLimit", 1e30f); capsule.write(((HingeConstraint) constraint).getUpperLimit(), "upperLimit", -1e30f); capsule.write(biasFactor, "biasFactor", 0.3f); capsule.write(relaxationFactor, "relaxationFactor", 1f); capsule.write(limitSoftness, "limitSoftness", 0.9f); capsule.write(((HingeConstraint) constraint).getEnableAngularMotor(), "enableAngularMotor", false); capsule.write(((HingeConstraint) constraint).getMotorTargetVelosity(), "targetVelocity", 0.0f); capsule.write(((HingeConstraint) constraint).getMaxMotorImpulse(), "maxMotorImpulse", 0.0f); }
/** * Serialize this joint, for example when saving to a J3O file. * * @param ex exporter (not null) * @throws IOException from exporter */ public void write(JmeExporter ex) throws IOException { super.write(ex); OutputCapsule capsule = ex.getCapsule(this); capsule.write(axisA, "axisA", new Vector3f()); capsule.write(axisB, "axisB", new Vector3f()); capsule.write(angularOnly, "angularOnly", false); capsule.write(getLowerLimit(), "lowerLimit", 1e30f); capsule.write(getUpperLimit(), "upperLimit", -1e30f); capsule.write(biasFactor, "biasFactor", 0.3f); capsule.write(relaxationFactor, "relaxationFactor", 1f); capsule.write(limitSoftness, "limitSoftness", 0.9f); capsule.write(getEnableMotor(), "enableAngularMotor", false); capsule.write(getMotorTargetVelocity(), "targetVelocity", 0.0f); capsule.write(getMaxMotorImpulse(), "maxMotorImpulse", 0.0f); }
@Override public void write(JmeExporter ex) throws IOException { super.write(ex); OutputCapsule capsule = ex.getCapsule(this); capsule.write(angularUpperLimit, "angularUpperLimit", new Vector3f(Vector3f.POSITIVE_INFINITY));
super.write(ex); OutputCapsule capsule = ex.getCapsule(this); capsule.write(angularUpperLimit, "angularUpperLimit", new Vector3f(Vector3f.POSITIVE_INFINITY));
@Override public void write(JmeExporter ex) throws IOException { super.write(ex); OutputCapsule capsule = ex.getCapsule(this);
super.write(ex); OutputCapsule capsule = ex.getCapsule(this);
@Override public void write(JmeExporter ex) throws IOException { super.write(ex); OutputCapsule cap = ex.getCapsule(this); cap.write(getDamping(), "damping", 1.0f); cap.write(getTau(), "tau", 0.3f); cap.write(getImpulseClamp(), "impulseClamp", 0f); }
@Override public void write(JmeExporter ex) throws IOException { super.write(ex); OutputCapsule cap = ex.getCapsule(this); cap.write(getDamping(), "damping", 1.0f); cap.write(getTau(), "tau", 0.3f); cap.write(getImpulseClamp(), "impulseClamp", 0f); }
@Override public void write(JmeExporter ex) throws IOException { super.write(ex); OutputCapsule cap = ex.getCapsule(this); cap.write(getDamping(), "damping", 1.0f); cap.write(getTau(), "tau", 0.3f); cap.write(getImpulseClamp(), "impulseClamp", 0f); }
@Override public void write(JmeExporter ex) throws IOException { super.write(ex); OutputCapsule capsule = ex.getCapsule(this); capsule.write(rotA, "rotA", new Matrix3f()); capsule.write(rotB, "rotB", new Matrix3f()); capsule.write(angularOnly, "angularOnly", false); capsule.write(swingSpan1, "swingSpan1", 1e30f); capsule.write(swingSpan2, "swingSpan2", 1e30f); capsule.write(twistSpan, "twistSpan", 1e30f); }
@Override public void write(JmeExporter ex) throws IOException { super.write(ex); OutputCapsule capsule = ex.getCapsule(this); capsule.write(rotA, "rotA", new Matrix3f()); capsule.write(rotB, "rotB", new Matrix3f()); capsule.write(angularOnly, "angularOnly", false); capsule.write(swingSpan1, "swingSpan1", 1e30f); capsule.write(swingSpan2, "swingSpan2", 1e30f); capsule.write(twistSpan, "twistSpan", 1e30f); }
@Override public void write(JmeExporter ex) throws IOException { super.write(ex); OutputCapsule capsule = ex.getCapsule(this); capsule.write(rotA, "rotA", new Matrix3f()); capsule.write(rotB, "rotB", new Matrix3f()); capsule.write(angularOnly, "angularOnly", false); capsule.write(swingSpan1, "swingSpan1", 1e30f); capsule.write(swingSpan2, "swingSpan2", 1e30f); capsule.write(twistSpan, "twistSpan", 1e30f); }
public void write(JmeExporter ex) throws IOException { super.write(ex); OutputCapsule capsule = ex.getCapsule(this); capsule.write(axisA, "axisA", new Vector3f()); capsule.write(axisB, "axisB", new Vector3f()); capsule.write(angularOnly, "angularOnly", false); capsule.write(getLowerLimit(), "lowerLimit", 1e30f); capsule.write(getUpperLimit(), "upperLimit", -1e30f); capsule.write(biasFactor, "biasFactor", 0.3f); capsule.write(relaxationFactor, "relaxationFactor", 1f); capsule.write(limitSoftness, "limitSoftness", 0.9f); capsule.write(getEnableMotor(), "enableAngularMotor", false); capsule.write(getMotorTargetVelocity(), "targetVelocity", 0.0f); capsule.write(getMaxMotorImpulse(), "maxMotorImpulse", 0.0f); }
public void write(JmeExporter ex) throws IOException { super.write(ex); OutputCapsule capsule = ex.getCapsule(this); capsule.write(axisA, "axisA", new Vector3f()); capsule.write(axisB, "axisB", new Vector3f()); capsule.write(angularOnly, "angularOnly", false); capsule.write(getLowerLimit(), "lowerLimit", 1e30f); capsule.write(getUpperLimit(), "upperLimit", -1e30f); capsule.write(biasFactor, "biasFactor", 0.3f); capsule.write(relaxationFactor, "relaxationFactor", 1f); capsule.write(limitSoftness, "limitSoftness", 0.9f); capsule.write(getEnableMotor(), "enableAngularMotor", false); capsule.write(getMotorTargetVelocity(), "targetVelocity", 0.0f); capsule.write(getMaxMotorImpulse(), "maxMotorImpulse", 0.0f); }
public void write(JmeExporter ex) throws IOException { super.write(ex); OutputCapsule capsule = ex.getCapsule(this); capsule.write(axisA, "axisA", new Vector3f()); capsule.write(axisB, "axisB", new Vector3f()); capsule.write(angularOnly, "angularOnly", false); capsule.write(((HingeConstraint) constraint).getLowerLimit(), "lowerLimit", 1e30f); capsule.write(((HingeConstraint) constraint).getUpperLimit(), "upperLimit", -1e30f); capsule.write(biasFactor, "biasFactor", 0.3f); capsule.write(relaxationFactor, "relaxationFactor", 1f); capsule.write(limitSoftness, "limitSoftness", 0.9f); capsule.write(((HingeConstraint) constraint).getEnableAngularMotor(), "enableAngularMotor", false); capsule.write(((HingeConstraint) constraint).getMotorTargetVelosity(), "targetVelocity", 0.0f); capsule.write(((HingeConstraint) constraint).getMaxMotorImpulse(), "maxMotorImpulse", 0.0f); }
@Override public void write(JmeExporter ex) throws IOException { super.write(ex); OutputCapsule capsule = ex.getCapsule(this); capsule.write(angularUpperLimit, "angularUpperLimit", new Vector3f(Vector3f.POSITIVE_INFINITY));