Archived
1
0
Fork 0

Fixed physics

This commit is contained in:
Simon Giesel 2017-01-25 18:58:05 +01:00
parent 57c42d74e9
commit f84a5bf850

View file

@ -15,7 +15,7 @@ var Configuration = {
ball_speed : 15,
ball_owner : Math.round(Math.random()) + 1,
ball_maxAngle : 5*Math.PI/12,
wincount : 3
wincount : 5
}
/** Parameters **/
@ -291,7 +291,7 @@ function calculateBallPosition(){
console.log(intersect);
console.log('###########################');
ball_VX = ball_speed*Math.cos(intersect*ball_maxAngle);
ball_VY = ball_speed*Math.sin(intersect*ball_maxAngle);
ball_VY = -ball_speed*Math.sin(intersect*ball_maxAngle);
}
}