Tabnine Logo
com.jme3.scene.debug
Code IndexAdd Tabnine to your IDE (free)

How to use com.jme3.scene.debug

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

origin: jMonkeyEngine/jmonkeyengine

public WireFrustum(Vector3f[] points){
  initGeom(this, points);
}
origin: jMonkeyEngine/jmonkeyengine

@Override
public void updateLogicalState(float tpf) {
  super.updateLogicalState(tpf);
  wires.updateGeometry();
  points.updateGeometry();
  if(interBoneWires != null) {
    interBoneWires.updateGeometry();
  }
}
origin: jMonkeyEngine/jmonkeyengine

public WireBox(float xExt, float yExt, float zExt){
  updatePositions(xExt,yExt,zExt);
  setBuffer(Type.Index, 2,
      new short[]{
         0, 1,
         1, 2,
         2, 3,
         3, 0,
         4, 5,
         5, 6,
         6, 7,
         7, 4,
         0, 4,
         1, 5,
         2, 6,
         3, 7,
      }
  );
  setMode(Mode.Lines);
  updateCounts();
}
origin: jMonkeyEngine/jmonkeyengine

/**
 * Alter the location and extent of the red arrow.
 *
 * @param location the coordinates of the tail (not null, unaffected)
 * @param extent the offset of the tip from the tail (not null, unaffected)
 */
public void setRedArrow(Vector3f location, Vector3f extent) {
  arrowRedGeom.setLocalTranslation(location);
  arrowRed.setArrowExtent(extent);
}
origin: jMonkeyEngine/jmonkeyengine

/**
 * Creates a debugger with bone lengths data. If the data is supplied then the wires will show each full bone (from head to tail),
 * the points will display both heads and tails of the bones and dotted lines between bones will be seen.
 * @param name
 *            the name of the debugger's node
 * @param skeleton
 *            the skeleton that will be shown
 * @param boneLengths
 *            a map between the bone's index and the bone's length
 */
public SkeletonDebugger(String name, Skeleton skeleton, Map<Integer, Float> boneLengths) {
  super(name);
  wires = new SkeletonWire(skeleton, boneLengths);
  points = new SkeletonPoints(skeleton, boneLengths);
  this.attachChild(new Geometry(name + "_wires", wires));
  this.attachChild(new Geometry(name + "_points", points));
  if (boneLengths != null) {
    interBoneWires = new SkeletonInterBoneWire(skeleton, boneLengths);
    this.attachChild(new Geometry(name + "_interwires", interBoneWires));
  }
  this.setQueueBucket(Bucket.Transparent);
}
origin: jMonkeyEngine/jmonkeyengine

/**
 * Th method couns the connections between bones.
 * @param bone
 *            the bone where counting starts
 */
private void countConnections(Bone bone) {
  for (Bone child : bone.getChildren()) {
    numConnections++;
    this.countConnections(child);
  }
}
origin: jMonkeyEngine/jmonkeyengine

  /**
   * Create a WireSphere from a BoundingSphere
   *
   * @param bsph
   *     BoundingSphere used to create the WireSphere
   *
   */
  public void fromBoundingSphere(BoundingSphere bsph) {
    updatePositions(bsph.getRadius());
  }
}
origin: jMonkeyEngine/jmonkeyengine

  /**
   * Th method couns the connections between bones.
   * @param bone
   *            the bone where counting starts
   */
  private void countConnections(Bone bone) {
    for (Bone child : bone.getChildren()) {
      ++connectionsAmount;
      this.countConnections(child);
    }
  }
}
origin: jMonkeyEngine/jmonkeyengine

/**
 * Alter the location and extent of the red arrow.
 *
 * @param location the coordinates of the tail (not null, unaffected)
 * @param extent the offset of the tip from the tail (not null, unaffected)
 */
public void setRedArrow(Vector3f location, Vector3f extent) {
  arrowRedGeom.setLocalTranslation(location);
  arrowRed.setArrowExtent(extent);
}
origin: jMonkeyEngine/jmonkeyengine

public static Mesh makeFrustum(Vector3f[] points){
  Mesh m = new Mesh();
  initGeom(m, points);
  return m;
}
origin: jMonkeyEngine/jmonkeyengine

/**
 * Alter the location and extent of the magenta arrow.
 *
 * @param location the coordinates of the tail (not null, unaffected)
 * @param extent the offset of the tip from the tail (not null, unaffected)
 */
public void setMagentaArrow(Vector3f location, Vector3f extent) {
  arrowMagentaGeom.setLocalTranslation(location);
  arrowMagenta.setArrowExtent(extent);
}
origin: jMonkeyEngine/jmonkeyengine

/**
 * Alter the location and extent of the pink arrow.
 *
 * @param location the coordinates of the tail (not null, unaffected)
 * @param extent the offset of the tip from the tail (not null, unaffected)
 */
public void setPinkArrow(Vector3f location, Vector3f extent) {
  arrowPinkGeom.setLocalTranslation(location);
  arrowPink.setArrowExtent(extent);
}
origin: jMonkeyEngine/jmonkeyengine

/**
 * Alter the location and extent of the blue arrow.
 *
 * @param location the coordinates of the tail (not null, unaffected)
 * @param extent the offset of the tip from the tail (not null, unaffected)
 */
public void setBlueArrow(Vector3f location, Vector3f extent) {
  arrowBlueGeom.setLocalTranslation(location);
  arrowBlue.setArrowExtent(extent);
}
origin: jMonkeyEngine/jmonkeyengine

/**
 * Alter the location and extent of the green arrow.
 *
 * @param location the coordinates of the tail (not null, unaffected)
 * @param extent the offset of the tip from the tail (not null, unaffected)
 */
public void setGreenArrow(Vector3f location, Vector3f extent) {
  arrowGreenGeom.setLocalTranslation(location);
  arrowGreen.setArrowExtent(extent);
}
origin: jMonkeyEngine/jmonkeyengine

/**
 * Alter the location and extent of the pink arrow.
 *
 * @param location the coordinates of the tail (not null, unaffected)
 * @param extent the offset of the tip from the tail (not null, unaffected)
 */
public void setPinkArrow(Vector3f location, Vector3f extent) {
  arrowPinkGeom.setLocalTranslation(location);
  arrowPink.setArrowExtent(extent);
}
origin: jMonkeyEngine/jmonkeyengine

/**
 * Alter the location and extent of the yellow arrow.
 *
 * @param location the coordinates of the tail (not null, unaffected)
 * @param extent the offset of the tip from the tail (not null, unaffected)
 */
public void setYellowArrow(Vector3f location, Vector3f extent) {
  arrowYellowGeom.setLocalTranslation(location);
  arrowYellow.setArrowExtent(extent);
}
origin: jMonkeyEngine/jmonkeyengine

/**
 * Alter the location and extent of the green arrow.
 *
 * @param location the coordinates of the tail (not null, unaffected)
 * @param extent the offset of the tip from the tail (not null, unaffected)
 */
public void setGreenArrow(Vector3f location, Vector3f extent) {
  arrowGreenGeom.setLocalTranslation(location);
  arrowGreen.setArrowExtent(extent);
}
origin: jMonkeyEngine/jmonkeyengine

/**
 * Alter the location and extent of the magenta arrow.
 *
 * @param location the coordinates of the tail (not null, unaffected)
 * @param extent the offset of the tip from the tail (not null, unaffected)
 */
public void setMagentaArrow(Vector3f location, Vector3f extent) {
  arrowMagentaGeom.setLocalTranslation(location);
  arrowMagenta.setArrowExtent(extent);
}
origin: jMonkeyEngine/jmonkeyengine

/**
 * Alter the location and extent of the yellow arrow.
 *
 * @param location the coordinates of the tail (not null, unaffected)
 * @param extent the offset of the tip from the tail (not null, unaffected)
 */
public void setYellowArrow(Vector3f location, Vector3f extent) {
  arrowYellowGeom.setLocalTranslation(location);
  arrowYellow.setArrowExtent(extent);
}
origin: jMonkeyEngine/jmonkeyengine

/**
 * Alter the location and extent of the blue arrow.
 *
 * @param location the coordinates of the tail (not null, unaffected)
 * @param extent the offset of the tip from the tail (not null, unaffected)
 */
public void setBlueArrow(Vector3f location, Vector3f extent) {
  arrowBlueGeom.setLocalTranslation(location);
  arrowBlue.setArrowExtent(extent);
}
com.jme3.scene.debug

Most used classes

  • Arrow
    The Arrow debug shape represents an arrow. An arrow is simply a line going from the original toward
  • SkeletonDebugger
    The class that creates a mesh to display how bones behave. If it is supplied with the bones' lengths
  • WireBox
  • Grid
    Simple grid shape.
  • WireFrustum
  • SkeletonPoints,
  • SkeletonWire,
  • SkeletonInterBoneWire,
  • ArmatureDebugAppState,
  • ArmatureDebugAppState$JointInfoVisitor,
  • ArmatureDebugger,
  • ArmatureInterJointsWire,
  • ArmatureNode,
  • BoneShape,
  • JointShape,
  • SkeletonBone,
  • SkeletonDebugAppState,
  • SkeletonDebugger,
  • SkeletonInterBoneWire
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