# Moving bounding box in 3D using libGDX

How do I go about moving a bounding box in libGDX?

I want to make the bounding box capture my character and move with him.

So ideally I want to be able to copy my vector 3 from my model instance and set it on the bounding box.

There doesn't seem to be any method like setToTranslation() on the BoundingBox class. How am I supposed to do it?

1. Use the set method to set the min and max bounds. So, you can move the box by moving both the min and max. Something like box.set(box.min + moveAmt, box.max + moveAmt);
2. Use the mul to multiply the bounds by a matrix. Create a translation matrix to translate the bounds by your movement amount. Something like box.mul(new Matrix4(moveAmt, QuaternionIdentity, Vector3Ones).