Tabnine Logo
HeightfieldCollisionShape.setMargin
Code IndexAdd Tabnine 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)

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

  • Reading from database using SQL prepared statement
  • startActivity (Activity)
  • runOnUiThread (Activity)
  • compareTo (BigDecimal)
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Top PhpStorm plugins
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