How to lock camera on 3D model ( "inspect" )

I try to make game inspired by “Gone home” I’m newbie so I don’t know much about this. there is a any way to “inspect” a 3D object? I mean Lock camera on 3D model.

Not enough details to advise you correctly. There’s around a dozen ways to do it.

The most basic one is to move the camera to the object when you enter the inspect mode.

What to tell more? For example, when you are close to object that you want inspect press assigned button, then will show model of this item that you can rotate. This is possible on blueprints?

By ‘show model’ do you mean zoom in on the model in the world or would you like the UI to come up and show the object in a separate window.

The first method would be simple to set up and require you to move the camera to the object. The second one requires a render target and quite a bit of moderately complex setup.


What to tell more?

The more details you provide, the easier it is to nudge you in the right direction. A brief description always helps. A marked second in the YT video demonstrating how you would like it to work wonder. My personal favourite will always be a crude paint drawing, though. But now I’m asking for too much, I know. :wink:

I mean some kind of pop up with model, not zoom on object in world.

I don’t know I import this right but:

251387-bez-tytułu.png

I want some like this: “inspected” object shows up as 3D model that can be rotated, like on picture.
Something more you need?

Makes sense.

For something like above, it will be enough to move the object (or spawn a copy) and place it in front of the camera. Have you tried that?

Umm, problem is this im new so i don’t know what some nodes do, well… I have some blueprints but it is a simple basic. I don’t know how to make a copy or place it at front of camera…

Is it going to be 1st or 3rd person game? Or top down view?

1st person game.

How do you pick up the item to inspect?

  • by looking at it and pressing the inspect button?
  • or you can click whatever you can see on the screen?

first one: look at it and click assigned button.

The item that you’re inspecting stays where it was or you want to have a copy in front of you?

Are you using the 1st person template for this?
Have you created some object already?
Are they in the level?

The copy of item on front of camera. I using blank for now, but it takes me up to hour to copy this to 1st person template. some object are created in level but don’t have any interactive actions for now.

The first thing you want to set up is line tracing. The character will shoot an imaginary beam in the looking direction, when this beam hits something, it returns a resulting struct - a data type with plenty of information about the stuff you’ve hit, including the reference to the object.

See if you can get something like that going first of all:

I strongly suggest you use the 1st person template for this as certain things, like movement are already set up.