Search in sources :

Example 36 with OutputCapsule

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

the class LodControl method write.

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

Example 37 with OutputCapsule

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

the class KinematicRagdollControl method write.

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

Example 38 with OutputCapsule

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

the class RigidBodyControl method write.

@Override
public void write(JmeExporter ex) throws IOException {
    super.write(ex);
    OutputCapsule oc = ex.getCapsule(this);
    oc.write(enabled, "enabled", true);
    oc.write(motionState.isApplyPhysicsLocal(), "applyLocalPhysics", false);
    oc.write(kinematicSpatial, "kinematicSpatial", true);
    oc.write(spatial, "spatial", null);
}
Also used : OutputCapsule(com.jme3.export.OutputCapsule)

Example 39 with OutputCapsule

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

the class Texture2D method write.

@Override
public void write(JmeExporter e) throws IOException {
    super.write(e);
    OutputCapsule capsule = e.getCapsule(this);
    capsule.write(wrapS, "wrapS", WrapMode.EdgeClamp);
    capsule.write(wrapT, "wrapT", WrapMode.EdgeClamp);
}
Also used : OutputCapsule(com.jme3.export.OutputCapsule)

Example 40 with OutputCapsule

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

the class TextureCubeMap method write.

@Override
public void write(JmeExporter e) throws IOException {
    super.write(e);
    OutputCapsule capsule = e.getCapsule(this);
    capsule.write(wrapS, "wrapS", WrapMode.EdgeClamp);
    capsule.write(wrapT, "wrapT", WrapMode.EdgeClamp);
    capsule.write(wrapR, "wrapR", WrapMode.EdgeClamp);
}
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