Getting object to maintain it's position relative to another

I’ve written some code to keep a sword stuck into a physics object when it moves. It works fine unless the physics object has been moved before throwing the sword into it, see here:

Here is the code, any ideas on what’s up here or maybe just any other ways of doing this that would work?


Hi man ,
i am not an expert in this but…

Try :
setting off collision for Stuck-.Object , recursive hitting could be a problem

Use attach actor to actor (My crossbow cast arrows in cubes quite well)
add a new mesh to the cube, with the shape of the sword ?

Thanks for the suggestion I don’t know why it didn’t occur to me to use attach actor. It all works now that really helped!