Vector3f halfExtents = new Vector3f((float) box.getXExtent(),
(float) box.getYExtent(), (float) box.getZExtent());
BoxShape shape = new BoxShape(halfExtents);
// fix local inertia
Vector3f localInertia = new Vector3f(0, 0, 0);
shape.calculateLocalInertia(mass, localInertia);
// set initial transform based on box
Transform startTransform = new Transform();
startTransform.setIdentity();
startTransform.origin.set(box.getTranslation().getXf(), box.getTranslation().getYf(), box.getTranslation().getZf());
MotionStateBind motionState = new MotionStateBind(startTransform);