Bug 328812 - Ball reverses direction on bounce.
Summary: Ball reverses direction on bounce.
Status: RESOLVED FIXED
Alias: None
Product: kbreakout
Classification: Applications
Component: general (show other bugs)
Version: 1.0.0
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Viranch Mehta
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-14 21:16 UTC by alexngould
Modified: 2016-07-23 18:47 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 16.08
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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