branchsbox-tabletennis-vr/alternating-client-authoritativecancel
3 Commits over 0 Days - ∞cph!
implement simple debug slowmo to make sure the angular hits are correct
Implement alternating client authoritative - whoevers side of the table the ball is on gets complete control of the ball
Neater way of giving client authority over the ball
Implement physics substeps on a fixed-ish time step within FrameSimulate, move the ball and try to collide with the paddle each step - this is probably quite unconventional but it gives us the perfect result and never misses
Use abs on our paddle return velocity length before multiplying by the sweep normal, stops the ball flying behind the paddle
Simulate physics entirely clientside each frame, make the client authoritative packing the ball position into the usercmd. The game should decide which client is authoritative based on which side of the table the ball is on.