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

viewRect's x offset is forced to a negative number relative to the width's value #92

Closed
TheBlackParrot opened this issue Nov 11, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@TheBlackParrot
Copy link

TheBlackParrot commented Nov 11, 2022

Trying to offset my first person view to a different position and cam2 is changing that value relative to what i set for the width value.
If I want

  "viewRect": {
    "x": 0.3,
    "y": 0.0,
    "width": 1.5,
    "height": 1.0,
    "locked": false
  },

cam2 forces it to

  "viewRect": {
    "x": -0.5,
    "y": 0.0,
    "width": 1.5,
    "height": 1.0,
    "locked": false
  },

upon reload / game restart.

@TheBlackParrot TheBlackParrot added bug Something isn't working unconfirmed labels Nov 11, 2022
@kinsi55
Copy link
Owner

kinsi55 commented Nov 11, 2022

This is actually intended to prevent people from accidently moving the camera completely offscreen and wondering where it went

Altho the math to achieve that might not be ideal

@TheBlackParrot
Copy link
Author

Completely took those lines out and built it myself tonight, stuff is positioning how I expect it to now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants