Snapping a case to character camera forward vector

So I have a suitcase model in an actor blueprint called BPA_Suitcase, now this suitcase will spawn other meshes in it, thus it needs to be carried without having to destroy it entirely from the world and respawn it at the place I want. In this case, that place is my player camera (I use a FPS cam btw). The problem is, I couldn’t get it to snap to the location at my first person camera. It just does not move. And I’m a rookie when it comes to blueprints so it’s probably on me. So far I used set relative/world location/rotation nodes and teleport node. But it hadn’t work.

I’d be more than happy if you could tell me what would be the best practice to get my suitcase from it’s world transform to the location at my First Person Camera’s forward direction, snap it to it’s place so that it won’t move (It has to stand frozen without any physics or collisions applied); and when I press the “Drop key”, it has to unsnap from it’s location, get back it’s physics and collision, get a certain amount of impulse to the direction of camera’s forward vector, and simply get to it’s world position again (wherever would it be when it’s dropped). And it all has to happen without destroying and recreating the actor because as I said I don’t want it to lose the data it holds inside.

Thanks already.

Many ways to do this. But for stuff that snaps in front of the camera we attach an invisible, non-collidable, static mesh to the character camera. Then use sockets on that static mesh to attach stuff or get positions in front of the camera.

Nice thing about this is you can drop a character into the editor, attach stuff to it, and get an idea of how it looks in the editor preview camera.

Because I couldn’t find a way to edit my original post, I’m writing this reply which I’ll flag as the solution because I handled the issue. So my actor was basically connected to a scene root and It was the reason why even though I set collision and physics off, the suitcase was not coming into it’s slot in BP_FirstPersoNCharacter. And I resolved the issue by deleting the scene component and making the suitcase the top element in the hierarchy. This resolved my issiue.

1 Like