/** * creates a collision box from the given halfExtents * @param halfExtents the halfExtents of the CollisionBox */ public BoxCollisionShape(Vector3f halfExtents) { this.halfExtents = halfExtents; createShape(); }
/** * Instantiate a box shape with the specified half extents. * * @param halfExtents the desired unscaled half extents (not null, no * negative component, alias created) */ public BoxCollisionShape(Vector3f halfExtents) { this.halfExtents = halfExtents; createShape(); }
private native long createShape(Vector3f halfExtents);
public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule capsule = im.getCapsule(this); Vector3f halfExtents = (Vector3f) capsule.readSavable("halfExtents", new Vector3f(1, 1, 1)); this.halfExtents = halfExtents; createShape(); }
/** * 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); Vector3f halfExtents = (Vector3f) capsule.readSavable("halfExtents", new Vector3f(1, 1, 1)); this.halfExtents = halfExtents; createShape(); }
/** * creates a collision box from the given halfExtents * @param halfExtents the halfExtents of the CollisionBox */ public BoxCollisionShape(Vector3f halfExtents) { this.halfExtents = halfExtents; createShape(); }
/** * creates a collision box from the given halfExtents * @param halfExtents the halfExtents of the CollisionBox */ public BoxCollisionShape(Vector3f halfExtents) { this.halfExtents = halfExtents; createShape(); }
/** * creates a collision box from the given halfExtents * @param halfExtents the halfExtents of the CollisionBox */ public BoxCollisionShape(Vector3f halfExtents) { this.halfExtents = halfExtents; createShape(); }
private native long createShape(Vector3f halfExtents);
private native long createShape(Vector3f halfExtents);
public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule capsule = im.getCapsule(this); Vector3f halfExtents = (Vector3f) capsule.readSavable("halfExtents", new Vector3f(1, 1, 1)); this.halfExtents = halfExtents; createShape(); }
public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule capsule = im.getCapsule(this); Vector3f halfExtents = (Vector3f) capsule.readSavable("halfExtents", new Vector3f(1, 1, 1)); this.halfExtents = halfExtents; createShape(); }
public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule capsule = im.getCapsule(this); Vector3f halfExtents = (Vector3f) capsule.readSavable("halfExtents", new Vector3f(1, 1, 1)); this.halfExtents = halfExtents; createShape(); }