/** * De-serialize this shape, for example when loading from a J3O file. * * @param im importer (not null) * @throws IOException from importer */ public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule capsule = im.getCapsule(this); radius = capsule.readFloat("radius", 0.5f); createShape(); }
public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule capsule = im.getCapsule(this); radius = capsule.readFloat("radius", 0.5f); createShape(); }
public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule capsule = im.getCapsule(this); plane = (Plane) capsule.readSavable("collisionPlane", new Plane()); createShape(); }
/** * De-serialize this shape, for example when loading from a J3O file. * * @param im importer (not null) * @throws IOException from importer */ public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule capsule = im.getCapsule(this); children = capsule.readSavableArrayList("children", new ArrayList<ChildCollisionShape>()); setScale(scale); setMargin(margin); loadChildren(); }
/** * De-serialize this shape, for example when loading from a J3O file. * * @param im importer (not null) * @throws IOException from importer */ public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule capsule = im.getCapsule(this); plane = (Plane) capsule.readSavable("collisionPlane", new Plane()); createShape(); }
public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule capsule = im.getCapsule(this); Vector3f halfExtents = (Vector3f) capsule.readSavable("halfExtents", new Vector3f(1, 1, 1)); this.halfExtents = halfExtents; createShape(); }
/** * De-serialize this shape, for example when loading from a J3O file. * * @param im importer (not null) * @throws IOException from importer */ public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule capsule = im.getCapsule(this); Vector3f halfExtents = (Vector3f) capsule.readSavable("halfExtents", new Vector3f(1, 1, 1)); this.halfExtents = halfExtents; createShape(); }
public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule capsule = im.getCapsule(this); numVertices = capsule.readInt("numVertices", 0); numTriangles = capsule.readInt("numTriangles", 0); vertexStride = capsule.readInt("vertexStride", 0); triangleIndexStride = capsule.readInt("triangleIndexStride", 0); triangleIndexBase = ByteBuffer.wrap(capsule.readByteArray("triangleIndexBase", new byte[0])); vertexBase = ByteBuffer.wrap(capsule.readByteArray("vertexBase", new byte[0])); createShape(); }
public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule capsule = im.getCapsule(this); children = capsule.readSavableArrayList("children", new ArrayList<ChildCollisionShape>()); cShape.setLocalScaling(Converter.convert(getScale())); cShape.setMargin(margin); loadChildren(); }
public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule capsule = im.getCapsule(this); radius = capsule.readFloat("radius", 0.5f); height = capsule.readFloat("height", 0.5f); axis = capsule.readInt("axis", PhysicsSpace.AXIS_Y); createShape(); }
public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule capsule = im.getCapsule(this); radius = capsule.readFloat("radius", 0.5f); height = capsule.readFloat("height", 0.5f); axis = capsule.readInt("axis", 1); createShape(); }
/** * De-serialize this shape, for example when loading from a J3O file. * * @param im importer (not null) * @throws IOException from importer */ public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule capsule = im.getCapsule(this); halfExtents = (Vector3f) capsule.readSavable("halfExtents", new Vector3f(0.5f, 0.5f, 0.5f)); axis = capsule.readInt("axis", 1); createShape(); }
@Override public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule capsule = im.getCapsule(this); // for backwards compatability Mesh mesh = (Mesh) capsule.readSavable("hullMesh", null); if (mesh != null) { this.points = getPoints(mesh); } else { this.points = capsule.readFloatArray("points", null); } createShape(this.points); }
public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule capsule = im.getCapsule(this); halfExtents = (Vector3f) capsule.readSavable("halfExtents", new Vector3f(0.5f, 0.5f, 0.5f)); axis = capsule.readInt("axis", 1); createShape(); }
/** * De-serialize this shape, for example when loading from a J3O file. * * @param im importer (not null) * @throws IOException from importer */ public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule capsule = im.getCapsule(this); radius = capsule.readFloat("radius", 0.5f); height = capsule.readFloat("height", 0.5f); axis = capsule.readInt("axis", PhysicsSpace.AXIS_Y); createShape(); }
/** * De-serialize this shape, for example when loading from a J3O file. * * @param im importer (not null) * @throws IOException from importer */ public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule capsule = im.getCapsule(this); radius = capsule.readFloat("radius", 0.5f); height = capsule.readFloat("height", 0.5f); axis = capsule.readInt("axis", 1); createShape(); }
public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule capsule = im.getCapsule(this); worldScale = (Vector3f) capsule.readSavable("worldScale", new Vector3f(1, 1, 1)); numVertices = capsule.readInt("numVertices", 0); numTriangles = capsule.readInt("numTriangles", 0); vertexStride = capsule.readInt("vertexStride", 0); triangleIndexStride = capsule.readInt("triangleIndexStride", 0); triangleIndexBase = ByteBuffer.wrap(capsule.readByteArray("triangleIndexBase", new byte[0])); vertexBase = ByteBuffer.wrap(capsule.readByteArray("vertexBase", new byte[0])); createShape(); }
public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule capsule = im.getCapsule(this); vector1 = (Vector3f) capsule.readSavable("simplexPoint1", null); vector2 = (Vector3f) capsule.readSavable("simplexPoint2", null); vector3 = (Vector3f) capsule.readSavable("simplexPoint3", null); vector4 = (Vector3f) capsule.readSavable("simplexPoint4", null); createShape(); }
/** * De-serialize this shape, for example when loading from a J3O file. * * @param im importer (not null) * @throws IOException from importer */ public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule capsule = im.getCapsule(this); vector1 = (Vector3f) capsule.readSavable("simplexPoint1", null); vector2 = (Vector3f) capsule.readSavable("simplexPoint2", null); vector3 = (Vector3f) capsule.readSavable("simplexPoint3", null); vector4 = (Vector3f) capsule.readSavable("simplexPoint4", null); createShape(); }
public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule capsule = im.getCapsule(this); heightStickWidth = capsule.readInt("heightStickWidth", 0); heightStickLength = capsule.readInt("heightStickLength", 0); heightScale = capsule.readFloat("heightScale", 0); minHeight = capsule.readFloat("minHeight", 0); maxHeight = capsule.readFloat("maxHeight", 0); upAxis = capsule.readInt("upAxis", 1); heightfieldData = capsule.readFloatArray("heightfieldData", new float[0]); flipQuadEdges = capsule.readBoolean("flipQuadEdges", false); createShape(); }