I would like for my camera to just hit the object and stop moving but I can't seem to figure out how to do this. Any help would be much appreciated

  • You would need physics. So you could make the hammer a static body (so it won't move) and also the floor. Then you add a collision shape to your character controller.

Attach physical collisions to the camera and the object and process the hit.

    There's a near setting on the camera if it's just a little bit.

      i elaborate on fire7side's comment:

      Camera3D node has the variable near — the minimum distance that gets rendered by the camera.
      lowering it means that the object can be rendered closer to the camera without looking cut off,
      but lowering it too much can cause rendering artifacts from the depth buffer becoming less precise.
      to counteract these artifacts (and to improve performance), you could also lower the render distance with far.

      You would need physics. So you could make the hammer a static body (so it won't move) and also the floor. Then you add a collision shape to your character controller.