From the course: Unreal Engine Blueprint Interaction for ArchViz Projects
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Calculating the user's camera position - Unreal Engine Tutorial
From the course: Unreal Engine Blueprint Interaction for ArchViz Projects
Calculating the user's camera position
- [Presenter] We have up to this point, set up a good portion of the interaction control that we will want to use from all of our blueprints here. But at the moment, we are simply telling on reel what to do when the user clicks, which is to fire a line trace so that we can see what is in front of them and then test if they are able to interact with it. And what we need to do now though, is tell it where to perform this action from. Come in to the get world location node, then let's drag from its output, and then search for and add a vector plus vector node, which we can find by typing the plus icon into the search field. So although we have set up the direction and distance of our line trace, we still need to make sure that it start location matches that of the camera's current position, which is what the vector plus vector node is for. To hook things up, we can pipe the output of our vector times, float node into the…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.