@Override public CollisionShape rotate(Quat4f rot) { javax.vecmath.Vector3f halfExtentsWithMargin = boxShape.getHalfExtentsWithMargin(new javax.vecmath.Vector3f()); com.bulletphysics.linearmath.QuaternionUtil.quatRotate(VecMath.to(rot), halfExtentsWithMargin, halfExtentsWithMargin); halfExtentsWithMargin.absolute(); return new BulletBoxShape(halfExtentsWithMargin); }