use of com.jme3.export.OutputCapsule in project jmonkeyengine by jMonkeyEngine.
the class FadeFilter method write.
@Override
public void write(JmeExporter ex) throws IOException {
super.write(ex);
OutputCapsule oc = ex.getCapsule(this);
oc.write(duration, "duration", 1);
}
use of com.jme3.export.OutputCapsule in project jmonkeyengine by jMonkeyEngine.
the class FogFilter method write.
@Override
public void write(JmeExporter ex) throws IOException {
super.write(ex);
OutputCapsule oc = ex.getCapsule(this);
oc.write(fogColor, "fogColor", ColorRGBA.White.clone());
oc.write(fogDensity, "fogDensity", 0.7f);
oc.write(fogDistance, "fogDistance", 1000);
}
use of com.jme3.export.OutputCapsule in project jmonkeyengine by jMonkeyEngine.
the class ConeCollisionShape method write.
public void write(JmeExporter ex) throws IOException {
super.write(ex);
OutputCapsule capsule = ex.getCapsule(this);
capsule.write(radius, "radius", 0.5f);
capsule.write(height, "height", 0.5f);
capsule.write(axis, "axis", PhysicsSpace.AXIS_Y);
}
use of com.jme3.export.OutputCapsule in project jmonkeyengine by jMonkeyEngine.
the class GImpactCollisionShape method write.
public void write(JmeExporter ex) throws IOException {
super.write(ex);
OutputCapsule capsule = ex.getCapsule(this);
capsule.write(worldScale, "worldScale", new Vector3f(1, 1, 1));
capsule.write(numVertices, "numVertices", 0);
capsule.write(numTriangles, "numTriangles", 0);
capsule.write(vertexStride, "vertexStride", 0);
capsule.write(triangleIndexStride, "triangleIndexStride", 0);
capsule.write(triangleIndexBase.array(), "triangleIndexBase", new byte[0]);
capsule.write(vertexBase.array(), "vertexBase", new byte[0]);
}
use of com.jme3.export.OutputCapsule in project jmonkeyengine by jMonkeyEngine.
the class MeshCollisionShape method write.
public void write(JmeExporter ex) throws IOException {
super.write(ex);
OutputCapsule capsule = ex.getCapsule(this);
capsule.write(numVertices, "numVertices", 0);
capsule.write(numTriangles, "numTriangles", 0);
capsule.write(vertexStride, "vertexStride", 0);
capsule.write(triangleIndexStride, "triangleIndexStride", 0);
capsule.write(triangleIndexBase.array(), "triangleIndexBase", new byte[0]);
capsule.write(vertexBase.array(), "vertexBase", new byte[0]);
}
Aggregations