Tabnine Logo
HeightfieldCollisionShape.createShape
Code IndexAdd Tabnine to your IDE (free)

How to use
createShape
method
in
com.jme3.bullet.collision.shapes.HeightfieldCollisionShape

Best Java code snippets using com.jme3.bullet.collision.shapes.HeightfieldCollisionShape.createShape (Showing top 13 results out of 315)

origin: jMonkeyEngine/jmonkeyengine

createShape();
origin: jMonkeyEngine/jmonkeyengine

  /**
   * Instantiate the configured shape in Bullet.
   */
  protected void createShape() {
    bbuf = BufferUtils.createByteBuffer(heightfieldData.length * 4); 
//        fbuf = bbuf.asFloatBuffer();//FloatBuffer.wrap(heightfieldData);
//        fbuf.rewind();
//        fbuf.put(heightfieldData);
    for (int i = 0; i < heightfieldData.length; i++) {
      float f = heightfieldData[i];
      bbuf.putFloat(f);
    }
//        fbuf.rewind();
    objectId = createShape(heightStickWidth, heightStickLength, bbuf, heightScale, minHeight, maxHeight, upAxis, flipQuadEdges);
    Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Shape {0}", Long.toHexString(objectId));
    setScale(scale);
    setMargin(margin);
  }
 
origin: jMonkeyEngine/jmonkeyengine

createShape();
origin: jMonkeyEngine/jmonkeyengine

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();
}
origin: jMonkeyEngine/jmonkeyengine

  /**
   * 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);
    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();
  }
}
origin: info.projectkyoto/mms-engine

  protected void createShape() {
    bbuf = BufferUtils.createByteBuffer(heightfieldData.length * 4); 
//        fbuf = bbuf.asFloatBuffer();//FloatBuffer.wrap(heightfieldData);
//        fbuf.rewind();
//        fbuf.put(heightfieldData);
    for (int i = 0; i < heightfieldData.length; i++) {
      float f = heightfieldData[i];
      bbuf.putFloat(f);
    }
//        fbuf.rewind();
    objectId = createShape(heightStickWidth, heightStickLength, bbuf, heightScale, minHeight, maxHeight, upAxis, flipQuadEdges);
    Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Shape {0}", Long.toHexString(objectId));
    setScale(scale);
    setMargin(margin);
  }
 
origin: org.jmonkeyengine/jme3-bullet

  protected void createShape() {
    bbuf = BufferUtils.createByteBuffer(heightfieldData.length * 4); 
//        fbuf = bbuf.asFloatBuffer();//FloatBuffer.wrap(heightfieldData);
//        fbuf.rewind();
//        fbuf.put(heightfieldData);
    for (int i = 0; i < heightfieldData.length; i++) {
      float f = heightfieldData[i];
      bbuf.putFloat(f);
    }
//        fbuf.rewind();
    objectId = createShape(heightStickWidth, heightStickLength, bbuf, heightScale, minHeight, maxHeight, upAxis, flipQuadEdges);
    Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Shape {0}", Long.toHexString(objectId));
    setScale(scale);
    setMargin(margin);
  }
 
origin: org.jmonkeyengine/jme3-jbullet

createShape();
origin: org.jmonkeyengine/jme3-bullet

createShape();
origin: info.projectkyoto/mms-engine

createShape();
origin: org.jmonkeyengine/jme3-bullet

  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();
  }
}
origin: org.jmonkeyengine/jme3-jbullet

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();
}
origin: info.projectkyoto/mms-engine

  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();
  }
}
com.jme3.bullet.collision.shapesHeightfieldCollisionShapecreateShape

Javadoc

Instantiate the configured shape in Bullet.

Popular methods of HeightfieldCollisionShape

  • <init>
  • createCollisionHeightfield
  • setMargin
  • setScale
  • getScale

Popular in Java

  • Finding current android device location
  • onCreateOptionsMenu (Activity)
  • putExtra (Intent)
  • runOnUiThread (Activity)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Join (org.hibernate.mapping)
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now