/** * Instantiate a plane shape defined by the specified plane. * * @param plane the desired plane (not null, alias created) */ public PlaneCollisionShape(Plane plane) { this.plane = plane; createShape(); }
/** * Creates a plane Collision shape * @param plane the plane that defines the shape */ public PlaneCollisionShape(Plane plane) { this.plane = plane; createShape(); }
/** * Instantiate the configured shape in Bullet. */ protected void createShape() { objectId = createShape(plane.getNormal(), plane.getConstant()); Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Shape {0}", Long.toHexString(objectId)); // objectId = new StaticPlaneShape(Converter.convert(plane.getNormal()),plane.getConstant()); // objectId.setLocalScaling(Converter.convert(getScale())); // objectId.setMargin(margin); setScale(scale); setMargin(margin); }
/** * De-serialize this shape, for example when loading from a J3O file. * * @param im importer (not null) * @throws IOException from importer */ public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule capsule = im.getCapsule(this); plane = (Plane) capsule.readSavable("collisionPlane", new Plane()); createShape(); }
public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule capsule = im.getCapsule(this); plane = (Plane) capsule.readSavable("collisionPlane", new Plane()); createShape(); }
/** * Creates a plane Collision shape * @param plane the plane that defines the shape */ public PlaneCollisionShape(Plane plane) { this.plane = plane; createShape(); }
/** * Creates a plane Collision shape * @param plane the plane that defines the shape */ public PlaneCollisionShape(Plane plane) { this.plane = plane; createShape(); }
/** * Creates a plane Collision shape * @param plane the plane that defines the shape */ public PlaneCollisionShape(Plane plane) { this.plane = plane; createShape(); }
protected void createShape() { objectId = createShape(plane.getNormal(), plane.getConstant()); Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Shape {0}", Long.toHexString(objectId)); // objectId = new StaticPlaneShape(Converter.convert(plane.getNormal()),plane.getConstant()); // objectId.setLocalScaling(Converter.convert(getScale())); // objectId.setMargin(margin); setScale(scale); setMargin(margin); }
protected void createShape() { objectId = createShape(plane.getNormal(), plane.getConstant()); Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Shape {0}", Long.toHexString(objectId)); // objectId = new StaticPlaneShape(Converter.convert(plane.getNormal()),plane.getConstant()); // objectId.setLocalScaling(Converter.convert(getScale())); // objectId.setMargin(margin); setScale(scale); setMargin(margin); }
public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule capsule = im.getCapsule(this); plane = (Plane) capsule.readSavable("collisionPlane", new Plane()); createShape(); }
public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule capsule = im.getCapsule(this); plane = (Plane) capsule.readSavable("collisionPlane", new Plane()); createShape(); }
public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule capsule = im.getCapsule(this); plane = (Plane) capsule.readSavable("collisionPlane", new Plane()); createShape(); }