Page 1 of 1
New problem
Posted: Mon Mar 12, 2007 11:23 am
by turshija
I have started making some kind of tennis / ping pong but I have problems ...
I think collision isn't working fine on Z axis or I don't know how to set it work

check this source I started making and tell me the solution please...
Cheers
Boris
Posted: Mon Mar 12, 2007 4:42 pm
by VilleK
Hey Boris, nice to see you are still with us
The collision tests are 2d-only at the moment. You can still make it
work by adding a Condition-component to the OnCollision property list
which tests the z-value.
You also need to take care that you won't have repeated collisions.
When you reverse the z-velocity, it will immediately collide again
and reverse once more

. I added a line to move the ball just outside
the collision test in the z-axis when colliding.
Btw, I like the shadow
See attachment.
Posted: Mon Mar 12, 2007 10:19 pm
by turshija
VilleK wrote:Hey Boris, nice to see you are still with us

You wont rid of me easily hehe
Thanks for help, I thought to try to do that using Conditions but I thought that its possible to do it with collision and Z - axis
oh well ill try finishing this game
thanks
Boris