I can calculate the speed when there is no angle, but I can't calculate the speed when it is angle.
Physics paramaters:
Player Physics :
radius : 15,
bounce coefficient(coefficient of restitution) : 0.5,
mass : 2
damping : 0.96101
Ball Physics :
radius : 8,
bounce coefficient(coefficient of restitution) : 0.5,
mass: 1,
damping : 0.9902
Gif image(angled): haxball gif angled
Player speed on start: Vx: 5, Vy: 0
Ball speed on start: Vx: 0, Vy: 0
Player speed on collision: Vx: 3.4189778846153844, Vy: -0.9240480769230772
Ball speed on collision: Vx: 2.7721442307692317, Vy: 1.8480961538461544
The formula i use(this formula can calculate the speed when there is no angle): Formula image: Formula image
V1 = (m1*u1*k1 + m2*u2*k2 + m2*C1*C2*(u2*k2 - u1*k1)) /(m1 + m2)
V2 = (m1*u1*k1 + m2*u2*k2 + m1*C1*C2*(u1*k1 - u2*k2)) /(m1 + m2)
C1 and C2 bounce coefficient of player and ball.
How can i do?