Hello to everyone,
I have three rigid bodies:
1. a sphere
2. a wall
3. a ground
The problem goes like this:
- A force is applied to the sphere.
- The sphere hits the wall.
- The sphere keeps on going “following” the wall, instead of bouncing back.
The exact code I use that leads to the above scenario is scattered around few classes. However, I believe the following three points are the ones that matter:
1. The sphere is represented by an “AWPSphereShape”:-)
2. The wall & ground are both represented by an “AWPBoxShape”.
3. The force is applied by calling the “AWPRigidBody.applyCentralForce” method.
There is a “.swf” file attached that depicts the above scenario.
Could anyone, please, tell me why the ball does not reflect back but keeps on colliding with the wall?
Thank you very much.
P.S. Of course, if anyone believes that the source is needed I will attach it, as well.