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

Fix physics inconsistencies with different FPS #23

Open
alexobviously opened this issue Jan 10, 2024 · 1 comment
Open

Fix physics inconsistencies with different FPS #23

alexobviously opened this issue Jan 10, 2024 · 1 comment
Assignees

Comments

@alexobviously
Copy link
Member

Currently on 30FPS you can jump twice as high as at 60FPS. In general, things behave strangely. Different friction etc.

Is this a forge bug? Are we not using forge right?

@alexobviously alexobviously self-assigned this Jan 10, 2024
@alexobviously
Copy link
Member Author

alexobviously commented Jan 10, 2024

Notes:

  • It seems like there are two 'modes', let's call them normal (60fps) and lagging (<60fps, but usually 40fps)
  • The force that is applied to an object in lagging mode is double what it is in normal
  • The force in lagging mode seems to be constrained to a deliberate looking number while it isn't in normal mode

Examples:
Applying a force of -15000:

  • Normal velocity: -10
  • Lagging velocity: -19.9

Force of -30000:

  • Normal: -20.6
  • Lagging: -41.1

Force of -60000 (what we use on the main branch):

  • Normal: -41.9
  • Lagging: -60

Force of -120000:

  • Normal: -84.5
  • Lagging: -60

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant