Codota Logo
SkeletonWire.getBuffer
Code IndexAdd Codota to your IDE (free)

How to use
getBuffer
method
in
com.jme3.scene.debug.SkeletonWire

Best Java code snippets using com.jme3.scene.debug.SkeletonWire.getBuffer (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: jMonkeyEngine/jmonkeyengine

/**
 * The method updates the geometry according to the poitions of the bones.
 */
public void updateGeometry() {
  VertexBuffer vb = this.getBuffer(Type.Position);
  FloatBuffer posBuf = this.getFloatBuffer(Type.Position);
  posBuf.clear();
  for (int i = 0; i < skeleton.getBoneCount(); ++i) {
    Bone bone = skeleton.getBone(i);
    Vector3f head = bone.getModelSpacePosition();
    posBuf.put(head.getX()).put(head.getY()).put(head.getZ());
    if (boneLengths != null) {
      Vector3f tail = head.add(bone.getModelSpaceRotation().mult(Vector3f.UNIT_Y.mult(boneLengths.get(i))));
      posBuf.put(tail.getX()).put(tail.getY()).put(tail.getZ());
    }
  }
  posBuf.flip();
  vb.updateData(posBuf);
  this.updateBound();
}
origin: info.projectkyoto/mms-engine

  public void updateGeometry(){
    VertexBuffer vb = getBuffer(Type.Position);
    FloatBuffer posBuf = getFloatBuffer(Type.Position);
    posBuf.clear();
    for (int i = 0; i < skeleton.getBoneCount(); i++){
      Bone bone = skeleton.getBone(i);
      Vector3f bonePos = bone.getModelSpacePosition();

      posBuf.put(bonePos.getX()).put(bonePos.getY()).put(bonePos.getZ());
    }
    posBuf.flip();
    vb.updateData(posBuf);

    updateBound();
  }
}
origin: org.jmonkeyengine/jme3-core

/**
 * The method updates the geometry according to the poitions of the bones.
 */
public void updateGeometry() {
  VertexBuffer vb = this.getBuffer(Type.Position);
  FloatBuffer posBuf = this.getFloatBuffer(Type.Position);
  posBuf.clear();
  for (int i = 0; i < skeleton.getBoneCount(); ++i) {
    Bone bone = skeleton.getBone(i);
    Vector3f head = bone.getModelSpacePosition();
    posBuf.put(head.getX()).put(head.getY()).put(head.getZ());
    if (boneLengths != null) {
      Vector3f tail = head.add(bone.getModelSpaceRotation().mult(Vector3f.UNIT_Y.mult(boneLengths.get(i))));
      posBuf.put(tail.getX()).put(tail.getY()).put(tail.getZ());
    }
  }
  posBuf.flip();
  vb.updateData(posBuf);
  this.updateBound();
}
com.jme3.scene.debugSkeletonWiregetBuffer

Popular methods of SkeletonWire

  • <init>
    Creates a wire with bone lengths data. If the data is supplied then the wires will show each full bo
  • countConnections
    Th method couns the connections between bones.
  • getFloatBuffer
  • setBuffer
  • setMode
  • updateBound
  • updateCounts
  • updateGeometry
    The method updates the geometry according to the poitions of the bones.
  • writeConnections
    The method writes the indexes for the connection vertices. Used in non-length mode.

Popular in Java

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • getSystemService (Context)
  • onCreateOptionsMenu (Activity)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
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