PingPong math and game (UPBGE 0.3)

And here is a small game with it.
1st person view going to play Table-Tennis.

https://www.dropbox.com/scl/fi/srlwaz5u60ec084qv17b1/UPBGE_0.3_PingPong.blend?rlkey=n6sh6w5gb0xiy5f3mduz0fh6k&st=y802lx2k&dl=1

Welcome!

11 points win
A Game must be won by 2 points.
(if you win a game, opponent gets stronger)

FPV-Controls:
    WASD           Move
    Mouse          look
    Space          jump

At PingPong-Table:
    Left-MB:            Begin
    Mouse Left/Right:   Racket Left/Right
    S:                  Leave Table


Mouse Sensitivity:
   MouseWheel Up/Down  or Arrow-Key Up/Down:    in-/decrease Sensitivity
   Middle-MB or Home-Key:                       reset 

(Enter: Restart Game-file)


Hitting the Ball:    
    Position of Ball/Racket sets shoot direction   (= save, Ball will always hit the Table)
    or
    Spins:
        at the moment of impact move the mouse fast
        Left or right: spin left/right
        up: stronger hit (=faster Ball 1x) 
        down: soft hit (=slow down game) 
        
    (trying Spins has the risk of missing the Ball or Table) 
2 Likes