From 28adc784a9f5bdd6b815ad032b6fc0f9c220b71f Mon Sep 17 00:00:00 2001 From: pspeed42 Date: Tue, 12 Aug 2014 02:46:11 -0400 Subject: [PATCH] Allow the center to be set without creating a new Vector3f first. --- jme3-core/src/main/java/com/jme3/bounding/BoundingVolume.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jme3-core/src/main/java/com/jme3/bounding/BoundingVolume.java b/jme3-core/src/main/java/com/jme3/bounding/BoundingVolume.java index 8a2b87cd1..824f93992 100644 --- a/jme3-core/src/main/java/com/jme3/bounding/BoundingVolume.java +++ b/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.