When I press the action button I run a trace to check if I’m standing in front of something “pickup-able” and if that’s the case I save the actor and component in variables and set a bool that triggers a pickup animation in my anim BP. So far so good. That anim BP has a notify that calls a custom event in my character BP (also works) when the arms are down where it would grab an item. That event has the magic that isn’t quite working.
Here is the BP:
Now the expected behaviour would be that the item is glued to the socket and stays there until I hit the button again at which point there is simply a Release Component
node and it set’s the bool to false. Instead however the object is flung into the air and then is dragged along with my character like it is attached with a leash. How can this be when the location is updated every frame?
EDIT: the grab component variable is the hit component of the trace.
EDIT2: After setting the grab component location to the hit actor world location it is now carrying it in the right location but the item spins uncontrollably on its own axis. I’ve also changed the tick location to some space above my mesh and the rotation to [0,0,0]
but it still happens