/** * Instantiate the configured shape in Bullet. */ protected void createShape() { objectId = createShape(axis, halfExtents); Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Shape {0}", Long.toHexString(objectId)); // switch (axis) { // case 0: // objectId = new CylinderShapeX(Converter.convert(halfExtents)); // break; // case 1: // objectId = new CylinderShape(Converter.convert(halfExtents)); // break; // case 2: // objectId = new CylinderShapeZ(Converter.convert(halfExtents)); // break; // } // objectId.setLocalScaling(Converter.convert(getScale())); // objectId.setMargin(margin); setScale(scale); setMargin(margin); }
protected void createShape() { objectId = createShape(axis, halfExtents); Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Shape {0}", Long.toHexString(objectId)); // switch (axis) { // case 0: // objectId = new CylinderShapeX(Converter.convert(halfExtents)); // break; // case 1: // objectId = new CylinderShape(Converter.convert(halfExtents)); // break; // case 2: // objectId = new CylinderShapeZ(Converter.convert(halfExtents)); // break; // } // objectId.setLocalScaling(Converter.convert(getScale())); // objectId.setMargin(margin); setScale(scale); setMargin(margin); }
protected void createShape() { objectId = createShape(axis, halfExtents); Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Shape {0}", Long.toHexString(objectId)); // switch (axis) { // case 0: // objectId = new CylinderShapeX(Converter.convert(halfExtents)); // break; // case 1: // objectId = new CylinderShape(Converter.convert(halfExtents)); // break; // case 2: // objectId = new CylinderShapeZ(Converter.convert(halfExtents)); // break; // } // objectId.setLocalScaling(Converter.convert(getScale())); // objectId.setMargin(margin); setScale(scale); setMargin(margin); }