Hi I am new to Unreal engine…I ran into problem while modifying Top-down template to use as fps game viewing style with look around function with right mouse click, i want to reset the camera rotation back to 0,0,0 after click to move to location function.
I want to understand where to put reset camera rotation to pawn actual rotation after it has move to clicked location. Attaching screenshot of Blueprint.
I want to understand where to put
reset camera rotation to pawn actual
rotation after it has move to clicked
location. Attaching screenshot of
Blueprint.
A couple of ways to do it.
you could spawn a collision volume at the click location and bind its on Begin Overlap event, once you’ve reached it, it can be destroyed(or kept and reused for next go to click)
or, during Tick, keep checking how far you are from from the location you clicked: the length of v1 - v2 is the distance (you may need to introduce a bit of error wiggle room here)
Where to do it? In the same blueprint that handles the movement. Seems most logical.