Search in sources :

Example 51 with OutputCapsule

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);
}
Also used : OutputCapsule(com.jme3.export.OutputCapsule)

Example 52 with OutputCapsule

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);
}
Also used : OutputCapsule(com.jme3.export.OutputCapsule)

Example 53 with OutputCapsule

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);
}
Also used : OutputCapsule(com.jme3.export.OutputCapsule)

Example 54 with OutputCapsule

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]);
}
Also used : OutputCapsule(com.jme3.export.OutputCapsule) Vector3f(com.jme3.math.Vector3f)

Example 55 with OutputCapsule

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]);
}
Also used : OutputCapsule(com.jme3.export.OutputCapsule)

Aggregations

OutputCapsule (com.jme3.export.OutputCapsule)119 Vector3f (com.jme3.math.Vector3f)17 Matrix3f (com.jme3.math.Matrix3f)4 SafeArrayList (com.jme3.util.SafeArrayList)2 ArrayList (java.util.ArrayList)2 Generic6DofConstraint (com.bulletphysics.dynamics.constraintsolver.Generic6DofConstraint)1 BoundingSphere (com.jme3.bounding.BoundingSphere)1 BoxCollisionShape (com.jme3.bullet.collision.shapes.BoxCollisionShape)1 ChildCollisionShape (com.jme3.bullet.collision.shapes.infos.ChildCollisionShape)1 RotationalLimitMotor (com.jme3.bullet.joints.motors.RotationalLimitMotor)1 Plane (com.jme3.math.Plane)1 Quaternion (com.jme3.math.Quaternion)1 Vector2f (com.jme3.math.Vector2f)1 Mesh (com.jme3.scene.Mesh)1 ShaderNodeVariable (com.jme3.shader.ShaderNodeVariable)1 List (java.util.List)1