Air Hockey

Air Hockey

autor rafaelferca
Zgłoś błąd
Zgłoś grę
Loading ad...

Air Hockey

Ocena:
2.4
Data wydania: June 19, 2015
Ostatnia aktualizacja: June 19, 2015
Twórca: rafaelferca

Tagi dla Air Hockey

Opis

Air Hockey

Jak grać

Use Mouse to control yout stick

Komentarze

0/1000
aghloe avatar

aghloe

Jun. 21, 2015

1
0

I forgot to say which are vectors and which are scalars. Basically "S" should be a vector, and you should multiply P*(D/W) with a unitary vector (U) in the direction of the collision before adding with S. However i think instead of adding then chosing a minimum it may be better to have an extra multiplier "E". if S=M then E=0 ... if S=0 then E=1 (i leave the rest of the curve to you). Then do: X=S + U*E*P*(D/W). That will get rid of the need of a minimum and make it more realistic :) Cheers again, and sorry for the double post.

aghloe avatar

aghloe

Jun. 21, 2015

1
0

whoa this game is actually pretty fun!. however there is a problem with collisions. this is more noticeable when the disc is moving really slow. My guess is that you dont take into account the force that the player is giving to the disc which should affect the disc speed (even if slighly). For example: make the maximum speed of the disc "M". The maximum speed the player can give to the disc "P", The current speed of the disc "S". The distance to the real mouse position at the moment of the colision is "D". and the maximum distance the mouse can be at any time from any collision is "W". To calculate the new speed do: { X = S + P*(D/W) } and make A=minimum(M,X). cheers~