tutuyu1314 / andengineexamples

Automatically exported from code.google.com/p/andengineexamples
0 stars 0 forks source link

Moving Ball does not bounce correctly because two physics handlers are registered for ball #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run andengineexample version 1.4.6
2. Run moving ball example

What is the expected output? What do you see instead?

The ball should bounce against the walls, but it stops at the wall and rides 
along it.

What version of the product are you using? On what operating system?

1.4.6 on android 2.2.1

Please provide any additional information below.

Just remove the three lines after Ball is constructed in the onLoadScene() 
function, and then set the Y and X velocity to DEMO_VELOCITY value in the Ball 
constructor.  Those three lines were causing a conflict with the physics 
handler in the Ball class itself.

Original issue reported on code.google.com by daniel.m...@gmail.com on 4 Jun 2011 at 4:42

GoogleCodeExporter commented 9 years ago
same questions

Original comment by jeffisco...@gmail.com on 28 Aug 2011 at 8:16

GoogleCodeExporter commented 9 years ago
Attaching a patch.

Original comment by talklittle@gmail.com on 10 Oct 2011 at 12:53

Attachments: