Keep an item offset from my player as I rotate?

Hello @Brandon Wamboldt,

Generally the best way to create an offset in Blueprint is to use a Scene component. These can be found at the very bottom of the Add Components menu under the Utilities section. Essentially all they are is a position in 3D space which can be parented to other objects and have children. So what you would do is add a Scene component to your Blueprint, position it where you want the offset and then add any children to it that you want to be offset. You can of course also add the children at runtime using the “AttachTo” node if you want.

I hope this answer helps,

Farshooter

I’m trying to build a system where I can pick up items and move them around. I want the item to maintain the position and rotation offsets that it had when I picked it up (e.g. if its facing away from me, it should continue facing away from me however I rotate).

I’m having trouble keeping a position offset though (I have the rotation part). Here is my tick function to update the object’s position and rotation:

http://new.tinygrab.com/37897525d4cb3bb9c2303245dd5c8a4b8d53f3b1a0.png

Here is my code when I pick up the object:

http://new.tinygrab.com/37897525d47197b7afc477b103c7687ec189336f7b.png

The target, although not visible in my screenshot, is the item I am picking up. These blueprints are in my player character blueprint.

My current code results in a massive offset, due to rotating the vectors, but I don’t know why. How should I setup the position offset code?

Hmm, I don’t think thats what I want as it doesn’t keep the item positioned as a steady offset regardless of where I am looking

If you want the scene component to always stay where you are looking, make sure you parent it to your camera like in my picture below.

52352-offset+2.png

Farshooter

how did you manage to fix this?