Allow the center to be set without creating a

new Vector3f first.
This commit is contained in:
pspeed42 2014-08-12 02:46:11 -04:00
parent 97b8cb7435
commit 28adc784a9

@ -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.