Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / making a 3d object bounce when it hits somthin

Author
Message
mido
20
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 1st Oct 2006 23:51
i'm having proplems making a ball bounce against other objects
i need the code to make the angle of the ball change so it seems like it bounced against the walls



i'm one of the bad things that happen to good people
The Wilderbeast
20
Years of Service
User Offline
Joined: 14th Nov 2005
Location: UK
Posted: 2nd Oct 2006 21:27
someone esle had the same prob a little while ago, check out his post.

Krilik
20
Years of Service
User Offline
Joined: 16th Mar 2006
Location: Arizona, USA
Posted: 3rd Oct 2006 04:57
This thread might help you out. I think its the one Wilderbeast is talking about.

http://forum.thegamecreators.com/?m=forum_view&t=86881&b=10
mido
20
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 6th Oct 2006 20:15 Edited at: 6th Oct 2006 20:18
thanks, fixed the wall proplem
i have another proplem it's like the pool balls, i have tried to use the "object collision()" command to check the collision between several balls but it kinda didn't work because sometimes the balls would bounce and somtimes not so i used the "object screen x()" and "object screen y()" to check if the balls are hitting each other but the code doesn't work and i think that the proplem is in the variables
here is the code



i'm one of the bad things that happen to good people

Login to post a reply

Server time is: 2026-07-10 07:21:01
Your offset time is: 2026-07-10 07:21:01