소스 검색

Allow the center to be set without creating a
new Vector3f first.

pspeed42 11 년 전
부모
커밋
28adc784a9
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      jme3-core/src/main/java/com/jme3/bounding/BoundingVolume.java

+ 4 - 0
jme3-core/src/main/java/com/jme3/bounding/BoundingVolume.java

@@ -195,6 +195,10 @@ public abstract class BoundingVolume implements Savable, Cloneable, Collidable {
         center.set(newCenter);
     }
 
+    public final void setCenter(float x, float y, float z) {
+        center.set(x, y, z);
+    }
+
     /**
      * Find the distance from the center of this Bounding Volume to the given
      * point.