Codota Logo
HeightfieldCollisionShape.setMargin
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
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: 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);
  }
 
com.jme3.bullet.collision.shapesHeightfieldCollisionShapesetMargin

Popular methods of HeightfieldCollisionShape

  • <init>
  • createCollisionHeightfield
  • createShape
  • setScale
  • getScale

Popular in Java

  • Making http requests using okhttp
  • onCreateOptionsMenu (Activity)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Join (org.hibernate.mapping)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now