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

Physics #8

Open
1 of 3 tasks
DevulTj opened this issue Aug 6, 2022 · 1 comment
Open
1 of 3 tasks

Physics #8

DevulTj opened this issue Aug 6, 2022 · 1 comment
Assignees

Comments

@DevulTj
Copy link
Member

DevulTj commented Aug 6, 2022

Couple of physics related problems to note:

  • The paddle has to be in motion, preferrably when flicking it to hit the ball. Otherwise, the ball just goes through the paddle.
  • Should be able to just rest the ball on the paddle. Place a ball on the table, then from under the table, just gently bring it up onto the ball.
  • The ball shouldn't bounce forever.
sbox_gVE6G7APOf.mp4
@handsomematt
Copy link
Member

handsomematt commented Aug 6, 2022

Can solve a lot of this by making the paddle hitting balls entirely clientside authoritative within FrameSimulate, we'll still wanna do sweep traces - the key part is doing it before the ball moves. Actually we should be simulating the ball physics in FrameSimulate as well.

This will probably feel odd unless we:

  • Have the ball physics simulated clientside as well. The physics are deterministic so it should be simple enough, unless the engine fights us.
  • Lag compensate serverside for the other player to correct the ball for the other player.

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

2 participants