First time poster here, sorry if I commit any Faux Pas.
I am currently working on a game and am trying to figure out how to interact with an item in the world similarly to how it is done in the Vanishing of Ethan Carter.
I’ve included a video sample:
Essentially I would like to be able to click the object, have it zoom up to the camera, then be able to manipulate it (turn it on all axes).
I would attach a tag to every object which should be “explorable”. After that you catch the button down event (of whatever button you want to use) and send a trace into the direction the player is looking to. If the trace hits an object which is near to you, you can check if the object has got the tag you defined before. If its the case you can freeze the players input and spawn the object right in front of your player. With your players mouse input you could then manipulate the item you just spawned.
This method would have the advantage that you don’t need triggers for all of you objects.
Check out the content examples in the learn tab of the unreal launcher and you can see how they do their “physics gun”, you will want to do a tweaked version of that potentially, not sure since I haven’t played Ethan Carter.
I tried to take your suggestions the best I could, and using some other resources tried to cobble something together.
Unfortunately it doesn’t work. I believe I am just misunderstanding where my code needs to be going.
First thing I did was set up a linetrace by channel attached to the fire event of the first person blueprint from the first person template.
I then created a new actor called interactable which contains a function called manipulate. Next I created a child class of interactable, which overrides the manipulate function.