Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allowing the camera to remain a certain distance from the center? #29

Open
LoftedAphid86 opened this issue Oct 25, 2020 · 3 comments
Open
Labels
enhancement New feature or request

Comments

@LoftedAphid86
Copy link

As a feature request, would it be possible to define a certain distance off center that the camera will not move closer than automatically when you stop moving? I find the interpolation quite useful for aiming bows and magic to move my character so they don't obscure the target, but currently I have to continuously move them so that the camera doesn't move back and obscure the view. I hope I've explained what I mean well enough

@greenleaf1mile
Copy link

With the information provided. You should be able to adjust your X distance clamps. The center of your screen is based off of cursor and the distant from the cursor and character is based off the offset information and distant clamps. Is your camera over the shoulder or is it lazy?

@LoftedAphid86
Copy link
Author

LoftedAphid86 commented Dec 1, 2020

The clamp is the furthest distance the camera will go from the your character though, right? My proposal is to have the camera behave like:

|-----{--o--}-----|

Where | is the clamp, o is the player and {} is my proposed value. So when you move, the camera will go up to | and when you stop moving will move back until it gets to {/} then not move any futher towards the player.

So say when they move they might go |-----{-----}----o| then when they stop it will move towards the center until the character hits |-----{----o}-----|, effectively allowing you to swap over-the-shoulder views by moving slightly.

@greenleaf1mile
Copy link

I know what your talking about know. We need a automatic over the shoulder swap. I have just posted a request suggesting the same thing. You should go comment and like to see if the author will respond to us. Tell me if I described it well enough to understand too.

Yes the clamp is the max distance the camera can move away from the player.

@mwilsnd mwilsnd added the enhancement New feature or request label Aug 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants