Physics Problem (Transfer Energy)

Hi i am having a bit of a problem with some simple physics.
I have uploaded a small demo proj to demonstrate my problem.
In Scene 1, i have a racket and a ball....I want to make the ball bounce as if its a real tennis/ball.
IF i want to put little power to the racket then the ball bounces just a bit...but if i want to send it to the moon, then the ball should respond to the force i applied to it.
The problem is that on very high speeds the ball goes through the racket, and even if it doesnt, it is not bouncing as it should be. Sometimes it kinda goes inside the racket, or the motion isnt like it should be.... There is no proper 'Energy Tranfer' from the racket to the ball.
This shows better on Scene 2. The ball is on the ground and i can 'push' it with the racket.
The ball doesnt behave as a 'ball' ! The energy i put to the racket isnt getting transferred when the ball collides with it.
I've tried to set the ball to the racket's LinearVelocity X,Y but its the same thing.
The Pool Demo in the Projects does what i want....but the cue ball isn't controlled by the player. If i make the cue ball dragable and then hit the other balls, the same thing happens...the other balls dont move the way they should be.
Can anyone give me some pointers, on why this is happening and what can i do to overcome this problem ?
Thanks.
Here is the Project File Sample: http://www.multiupload.com/3K3RV9872T
I have uploaded a small demo proj to demonstrate my problem.
In Scene 1, i have a racket and a ball....I want to make the ball bounce as if its a real tennis/ball.
IF i want to put little power to the racket then the ball bounces just a bit...but if i want to send it to the moon, then the ball should respond to the force i applied to it.
The problem is that on very high speeds the ball goes through the racket, and even if it doesnt, it is not bouncing as it should be. Sometimes it kinda goes inside the racket, or the motion isnt like it should be.... There is no proper 'Energy Tranfer' from the racket to the ball.
This shows better on Scene 2. The ball is on the ground and i can 'push' it with the racket.
The ball doesnt behave as a 'ball' ! The energy i put to the racket isnt getting transferred when the ball collides with it.
I've tried to set the ball to the racket's LinearVelocity X,Y but its the same thing.
The Pool Demo in the Projects does what i want....but the cue ball isn't controlled by the player. If i make the cue ball dragable and then hit the other balls, the same thing happens...the other balls dont move the way they should be.
Can anyone give me some pointers, on why this is happening and what can i do to overcome this problem ?
Thanks.
Here is the Project File Sample: http://www.multiupload.com/3K3RV9872T
Comments
In that case I remember there were serious glitches with collision with constrained actors and so far i don't think they have been fixed. A temporary solution I think it can be found by playing a little with both objects densities.
________________________________
【ツ】iPhone Icon Pack (compatible with DBA Icon Creator) 【ツ】 - 【ツ】Graphic Pack【ツ】
Free GS demo: High score simple and advanced; Game Center; App Rating System
I played with densities also but nothing, same problem.
If what you say is true, that means there is no real collision detection happening with GS, and we'll never have proper joints, or custom collision shapes that function as they should.
If all the collisions are just some GS rules that apply in background from the objects X,Y + the distance to the edges of it, and all this is done at runtime...then there is no way for fast collisions to happen.
WTF...
This is very disappointing...
I mean people are requesting updates for Facebook, and crap like that, when the most important thing for games (collisions) is so messed up with GS ?