Hello guys
I’ve got a Top-Down prototype and my character is always facing the mouse pointer.
Now I want the character to see more of the terrain in the direction he is currently facing, like this when facing top (mouse is at top right of the screen):
http://i.imgur.com/HestzP5.jpg++
Or like this when the mouse is on the bottom right of the screen:
http://i.imgur.com/CB3RhoP.jpg
As you can see, I somehow got it to working by simply adding
CameraSpringArm->RelativeLocation = FVector(300.f, 0.f, 0.f);
to my SpringArmComponent.
There is a problem with that though: I cannot move the mouse closer than 300 units near the character, or the springarm will twitch like crazy. I guess it can’t go lower than 300 because of the RelativeLocation.
How can I keep the camera offset (ANY solution is welcome) in the direction the character is facing (->mouse is pointing), and be able to move the mouse pointer over the character without the camera twitching and turning like crazy?
Note: 300 should be the maxvalue the camera lets the user see more of the terrain.
Thanks for your time and help!