New problem

All topics about ZGameEditor goes here.

Moderator: Moderators

Post Reply
User avatar
turshija
Posts: 127
Joined: Sat Feb 17, 2007 9:26 am
Location: Novi Sad, Serbia
Contact:

New problem

Post 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
Attachments
tenis.zip
(1.11 KiB) Downloaded 532 times
Yo mama's so fat that a recursive function computing her weight causes a stack overflow.
User avatar
VilleK
Site Admin
Posts: 2277
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Post 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.
Attachments
tenis.zgeproj
(5.42 KiB) Downloaded 644 times
User avatar
turshija
Posts: 127
Joined: Sat Feb 17, 2007 9:26 am
Location: Novi Sad, Serbia
Contact:

Post 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
Yo mama's so fat that a recursive function computing her weight causes a stack overflow.
Post Reply