/** * 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); }
public SkeletonDebugger(String name, Skeleton skeleton){ super(name); this.skeleton = skeleton; wires = new SkeletonWire(skeleton); points = new SkeletonPoints(skeleton); attachChild(new Geometry(name+"_wires", wires)); attachChild(new Geometry(name+"_points", points)); setQueueBucket(Bucket.Transparent); }
/** * 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); }