@Override public int hashCode() { int hash = 5; hash = 73 * hash + (this.pos != null ? this.pos.hashCode() : 0); hash = 73 * hash + (this.norm != null ? this.norm.hashCode() : 0); hash = 73 * hash + (this.tang4d != null ? this.tang4d.hashCode() : 0); hash = 73 * hash + (this.tang != null ? this.tang.hashCode() : 0); hash = 73 * hash + (this.uv0 != null ? this.uv0.hashCode() : 0); hash = 73 * hash + (this.uv1 != null ? this.uv1.hashCode() : 0); hash = 73 * hash + (this.color != null ? this.color.hashCode() : 0); hash = 73 * hash + (this.material != null ? this.material.hashCode() : 0); hash = 73 * hash + (this.smoothing != null ? this.smoothing.hashCode() : 0); hash = 73 * hash + Arrays.deepHashCode(this.boneWeightsIndices); return hash; }
Vector3f[] vectors = getPositions(poiCount, inParentPosition.hashCode()); for (int i = 0; i < vectors.length; i++) { Vector3f vector3f = vectors[i];
private void initData() { getRootNode(); physicsState = new BulletAppState(); physicsState.startPhysics(); physicsState.getPhysicsSpace().setGravity(Vector3f.ZERO); //horizon physicsState.getPhysicsSpace().add(new RigidBodyControl(poiHorizonCollisionShape, 0)); int hashCode = inParentPosition.hashCode(); Vector3f[] positions = getPositions(poiCount, hashCode); for (int i = 0; i < positions.length; i++) { Vector3f vector3f = positions[i]; Geometry poiGeom = new Geometry("poi", poiMesh); poiGeom.setLocalTranslation(vector3f); poiGeom.setMaterial(poiMaterial); RigidBodyControl control = new RigidBodyControl(poiCollisionShape, 0); //!!! Important control.setApplyPhysicsLocal(true); poiGeom.addControl(control); physicsState.getPhysicsSpace().add(poiGeom); rootNode.attachChild(poiGeom); } //add balls after so first 10 geoms == locations for (int i = 0; i < positions.length; i++) { Vector3f vector3f = positions[i]; Geometry ball = getRandomBall(vector3f); physicsState.getPhysicsSpace().add(ball); rootNode.attachChild(ball); } }
@Override public int hashCode() { int hash = 5; hash = 73 * hash + (this.pos != null ? this.pos.hashCode() : 0); hash = 73 * hash + (this.norm != null ? this.norm.hashCode() : 0); hash = 73 * hash + (this.tang4d != null ? this.tang4d.hashCode() : 0); hash = 73 * hash + (this.tang != null ? this.tang.hashCode() : 0); hash = 73 * hash + (this.uv0 != null ? this.uv0.hashCode() : 0); hash = 73 * hash + (this.uv1 != null ? this.uv1.hashCode() : 0); hash = 73 * hash + (this.color != null ? this.color.hashCode() : 0); hash = 73 * hash + (this.material != null ? this.material.hashCode() : 0); hash = 73 * hash + (this.smoothing != null ? this.smoothing.hashCode() : 0); hash = 73 * hash + Arrays.deepHashCode(this.boneWeightsIndices); return hash; }