/** * Serialize this control, 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 oc = ex.getCapsule(this); oc.write(radius, "radius", 1); oc.write(height, "height", 1); oc.write(mass, "mass", 1); oc.write(jumpForce, "jumpForce", new Vector3f(0, mass * 5, 0)); oc.write(physicsDamping, "physicsDamping", 0.9f); }
/** * Serialize this control, 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 oc = ex.getCapsule(this); oc.write(radius, "radius", 1); oc.write(height, "height", 1); oc.write(mass, "mass", 1); oc.write(jumpForce, "jumpForce", new Vector3f(0, mass * 5, 0)); oc.write(physicsDamping, "physicsDamping", 0.9f); }
/** * Serialize this control, 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 oc = ex.getCapsule(this); oc.write(boneList.toArray(new String[boneList.size()]), "boneList", new String[0]); oc.write(boneLinks.values().toArray(new PhysicsBoneLink[boneLinks.size()]), "boneLinks", new PhysicsBoneLink[0]); oc.write(modelPosition, "modelPosition", new Vector3f()); oc.write(modelRotation, "modelRotation", new Quaternion()); oc.write(targetModel, "targetModel", null); oc.write(skeleton, "skeleton", null); // oc.write(preset, "preset", null);//TODO oc.write(initScale, "initScale", null); oc.write(mode, "mode", null); oc.write(blendedControl, "blendedControl", false); oc.write(weightThreshold, "weightThreshold", -1.0f); oc.write(blendStart, "blendStart", 0.0f); oc.write(blendTime, "blendTime", 1.0f); oc.write(eventDispatchImpulseThreshold, "eventDispatchImpulseThreshold", 10); oc.write(rootMass, "rootMass", 15); oc.write(totalMass, "totalMass", 0); oc.write(ikRotSpeed, "rotSpeed", 7f); oc.write(limbDampening, "limbDampening", 0.6f); }
/** * Serialize this control, 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 oc = ex.getCapsule(this); oc.write(boneList.toArray(new String[boneList.size()]), "boneList", new String[0]); oc.write(boneLinks.values().toArray(new PhysicsBoneLink[boneLinks.size()]), "boneLinks", new PhysicsBoneLink[0]); oc.write(modelPosition, "modelPosition", new Vector3f()); oc.write(modelRotation, "modelRotation", new Quaternion()); oc.write(targetModel, "targetModel", null); oc.write(skeleton, "skeleton", null); // oc.write(preset, "preset", null);//TODO oc.write(initScale, "initScale", null); oc.write(mode, "mode", null); oc.write(blendedControl, "blendedControl", false); oc.write(weightThreshold, "weightThreshold", -1.0f); oc.write(blendStart, "blendStart", 0.0f); oc.write(blendTime, "blendTime", 1.0f); oc.write(eventDispatchImpulseThreshold, "eventDispatchImpulseThreshold", 10); oc.write(rootMass, "rootMass", 15); oc.write(totalMass, "totalMass", 0); oc.write(ikRotSpeed, "rotSpeed", 7f); oc.write(limbDampening, "limbDampening", 0.6f); }
@Override public void write(JmeExporter ex) throws IOException { super.write(ex); OutputCapsule oc = ex.getCapsule(this); oc.write(radius, "radius", 1); oc.write(height, "height", 1); oc.write(mass, "mass", 1); oc.write(jumpForce, "jumpForce", new Vector3f(0, mass * 5, 0)); oc.write(physicsDamping, "physicsDamping", 0.9f); }
/** * Serialize this control, 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 oc = ex.getCapsule(this); oc.write(radius, "radius", 1); oc.write(height, "height", 1); oc.write(mass, "mass", 1); oc.write(jumpForce, "jumpForce", new Vector3f(0, mass * 5, 0)); oc.write(physicsDamping, "physicsDamping", 0.9f); }
/** * Serialize this control, 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 oc = ex.getCapsule(this); oc.write(boneList.toArray(new String[boneList.size()]), "boneList", new String[0]); oc.write(boneLinks.values().toArray(new PhysicsBoneLink[boneLinks.size()]), "boneLinks", new PhysicsBoneLink[0]); oc.write(modelPosition, "modelPosition", new Vector3f()); oc.write(modelRotation, "modelRotation", new Quaternion()); oc.write(targetModel, "targetModel", null); oc.write(skeleton, "skeleton", null); // oc.write(preset, "preset", null);//TODO oc.write(initScale, "initScale", null); oc.write(mode, "mode", null); oc.write(blendedControl, "blendedControl", false); oc.write(weightThreshold, "weightThreshold", -1.0f); oc.write(blendStart, "blendStart", 0.0f); oc.write(blendTime, "blendTime", 1.0f); oc.write(eventDispatchImpulseThreshold, "eventDispatchImpulseThreshold", 10); oc.write(rootMass, "rootMass", 15); oc.write(totalMass, "totalMass", 0); oc.write(ikRotSpeed, "rotSpeed", 7f); oc.write(limbDampening, "limbDampening", 0.6f); }
/** * serialize this control * * @param ex * @throws IOException */ @Override public void write(JmeExporter ex) throws IOException { super.write(ex); OutputCapsule oc = ex.getCapsule(this); oc.write(boneList.toArray(new String[boneList.size()]), "boneList", new String[0]); oc.write(boneLinks.values().toArray(new PhysicsBoneLink[boneLinks.size()]), "boneLinks", new PhysicsBoneLink[0]); oc.write(modelPosition, "modelPosition", new Vector3f()); oc.write(modelRotation, "modelRotation", new Quaternion()); oc.write(targetModel, "targetModel", null); oc.write(skeleton, "skeleton", null); // oc.write(preset, "preset", null);//TODO oc.write(initScale, "initScale", null); oc.write(mode, "mode", null); oc.write(blendedControl, "blendedControl", false); oc.write(weightThreshold, "weightThreshold", -1.0f); oc.write(blendStart, "blendStart", 0.0f); oc.write(blendTime, "blendTime", 1.0f); oc.write(eventDispatchImpulseThreshold, "eventDispatchImpulseThreshold", 10); oc.write(rootMass, "rootMass", 15); oc.write(totalMass, "totalMass", 0); oc.write(ikRotSpeed, "rotSpeed", 7f); oc.write(limbDampening, "limbDampening", 0.6f); }