FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 953 : BouncyBubbles Example has error in 0150 Beta
Last modified: 2008-10-17 20:18
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
FIXED -
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
hafree
Assigned To:
REAS
Attachment
Type
Created
Size
Actions
Description
: Opened: 2008-10-15 15:22
in the move() method BouncyBubbles has:
[snip]
if (x + diameter/2 > width) {
x = width - diameter/2;
vx += -0.9; // should be vx *= -0.9
}
[snip]
I'm pretty sure the vx += -0.9 should be vx *= -0.9. The rest of the
if/else construct uses *=
it would be better for the friction coefficient to be a constant defined at
the top.
Additional Comment
#1 From fry 2008-10-17 07:40
the additional notes and changes to this bug were lost in the server crash,
please re-post.
Additional Comment
#2 From REAS 2008-10-17 20:18
I fixed the example before the crash, I got what I needed. Fixed. Thanks
hafree.