Search in sources :

Example 41 with OutputCapsule

use of com.jme3.export.OutputCapsule in project jmonkeyengine by jMonkeyEngine.

the class PointLight method write.

@Override
public void write(JmeExporter ex) throws IOException {
    super.write(ex);
    OutputCapsule oc = ex.getCapsule(this);
    oc.write(position, "position", null);
    oc.write(radius, "radius", 0f);
}
Also used : OutputCapsule(com.jme3.export.OutputCapsule)

Example 42 with OutputCapsule

use of com.jme3.export.OutputCapsule in project jmonkeyengine by jMonkeyEngine.

the class ParticleEmitter method write.

@Override
public void write(JmeExporter ex) throws IOException {
    super.write(ex);
    OutputCapsule oc = ex.getCapsule(this);
    oc.write(shape, "shape", DEFAULT_SHAPE);
    oc.write(meshType, "meshType", ParticleMesh.Type.Triangle);
    oc.write(enabled, "enabled", true);
    oc.write(particles.length, "numParticles", 0);
    oc.write(particlesPerSec, "particlesPerSec", 0);
    oc.write(lowLife, "lowLife", 0);
    oc.write(highLife, "highLife", 0);
    oc.write(gravity, "gravity", null);
    oc.write(imagesX, "imagesX", 1);
    oc.write(imagesY, "imagesY", 1);
    oc.write(startColor, "startColor", null);
    oc.write(endColor, "endColor", null);
    oc.write(startSize, "startSize", 0);
    oc.write(endSize, "endSize", 0);
    oc.write(worldSpace, "worldSpace", false);
    oc.write(facingVelocity, "facingVelocity", false);
    oc.write(faceNormal, "faceNormal", new Vector3f(Vector3f.NAN));
    oc.write(selectRandomImage, "selectRandomImage", false);
    oc.write(randomAngle, "randomAngle", false);
    oc.write(rotateSpeed, "rotateSpeed", 0);
    oc.write(particleInfluencer, "influencer", DEFAULT_INFLUENCER);
}
Also used : OutputCapsule(com.jme3.export.OutputCapsule) Vector3f(com.jme3.math.Vector3f)

Example 43 with OutputCapsule

use of com.jme3.export.OutputCapsule in project jmonkeyengine by jMonkeyEngine.

the class EmitterPointShape method write.

@Override
public void write(JmeExporter ex) throws IOException {
    OutputCapsule oc = ex.getCapsule(this);
    oc.write(point, "point", null);
}
Also used : OutputCapsule(com.jme3.export.OutputCapsule)

Example 44 with OutputCapsule

use of com.jme3.export.OutputCapsule in project jmonkeyengine by jMonkeyEngine.

the class EmitterSphereShape method write.

@Override
public void write(JmeExporter ex) throws IOException {
    OutputCapsule oc = ex.getCapsule(this);
    oc.write(center, "center", null);
    oc.write(radius, "radius", 0);
}
Also used : OutputCapsule(com.jme3.export.OutputCapsule)

Example 45 with OutputCapsule

use of com.jme3.export.OutputCapsule in project jmonkeyengine by jMonkeyEngine.

the class EmitterBoxShape method write.

@Override
public void write(JmeExporter ex) throws IOException {
    OutputCapsule oc = ex.getCapsule(this);
    oc.write(min, "min", null);
    oc.write(len, "length", null);
}
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