diff --git a/app/src/main/java/org/ntlab/radishforandroidstudio/framework/physics/BoundingBoxVisitor.java b/app/src/main/java/org/ntlab/radishforandroidstudio/framework/physics/BoundingBoxVisitor.java index 0c5fa00..d8bbfd8 100644 --- a/app/src/main/java/org/ntlab/radishforandroidstudio/framework/physics/BoundingBoxVisitor.java +++ b/app/src/main/java/org/ntlab/radishforandroidstudio/framework/physics/BoundingBoxVisitor.java @@ -13,15 +13,15 @@ private ArrayList bsStack = new ArrayList(); // オブジェクトの階層毎のBoundingSphereのスタック private String partName = null; // 部品を指定する場合に使う private boolean inPart = false; - + public BoundingBoxVisitor() { partName = null; } - + public BoundingBoxVisitor(String partName) { this.partName = partName; } - + public void preVisit(Object3D obj) { pushTransform(obj); if (partName != null && obj.name.equals(partName)) { @@ -42,7 +42,7 @@ if (obj.bs == null) { obj.bs = obb.getBoundingSphere(); } - + obb = (OBB)obb.clone(); BoundingSphere bs = (BoundingSphere)obj.bs.clone(); for (int i = stackList.size() - 1; i >= 0; i--) {