Bug 328812

Summary: Ball reverses direction on bounce.
Product: [Applications] kbreakout Reporter: alexngould
Component: generalAssignee: Viranch Mehta <viranch.mehta>
Status: RESOLVED FIXED    
Severity: normal CC: kde-games-bugs
Priority: NOR    
Version: 1.0.0   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In: 16.08
Sentry Crash Report:

Description alexngould 2013-12-14 21:16:02 UTC
In the current version, I have often noticed the ball reversing direction unexpectedly on bounce. This tends to occur when the ball is bouncing along a wall of indestructible blocks, such as in level 8, and hits the boundary between two adjacent blocks.

Reproducible: Sometimes
Comment 1 Julian Helfferich 2016-07-23 18:46:27 UTC
Git commit c0d7daa0789fb8c7bf798c2a19eab764f9205d10 by Julian Helfferich.
Committed on 23/07/2016 at 18:31.
Pushed by helfferich into branch 'master'.

Fix collision detection.

When the ball intersects with two bricks after a time step, a function
was called to calculate the overlap with each of these bricks. Due to a
bug, the calculation always returned NaN and the ball always bounced off
of the second brick (independent from the overlap). This bug has now
been fixed. The bug caused the ball to frequently change direction on
a bounce. This issue is now fixed.
FIXED-IN: 16.08
REVIEW: 128472

M  +3    -3    src/qml/logic.js

http://commits.kde.org/kbreakout/c0d7daa0789fb8c7bf798c2a19eab764f9205d10
Comment 2 Julian Helfferich 2016-07-23 18:47:07 UTC
Git commit c685bcedba0d3c5fa5d3e8470b1c5a1cd4e52744 by Julian Helfferich.
Committed on 23/07/2016 at 18:45.
Pushed by helfferich into branch 'Applications/16.08'.

Fix collision detection.

When the ball intersects with two bricks after a time step, a function
was called to calculate the overlap with each of these bricks. Due to a
bug, the calculation always returned NaN and the ball always bounced off
of the second brick (independent from the overlap). This bug has now
been fixed. The bug caused the ball to frequently change direction on
a bounce. This issue is now fixed.
FIXED-IN: 16.08
REVIEW: 128472

M  +3    -3    src/qml/logic.js

http://commits.kde.org/kbreakout/c685bcedba0d3c5fa5d3e8470b1c5a1cd4e52744