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 Professional Discussion / Moving and colliding on the y axis in 3d space! URGENT

Author
Message
Tucker
16
Years of Service
User Offline
Joined: 20th Jun 2010
Location: Earth Prime
Posted: 12th Nov 2010 06:27 Edited at: 12th Nov 2010 06:29
Hello fellow coders!

I am in desperate need of help with a small project I'm doing.
All I am trying to do is make the box's collide and fall off each other if they are stacked upon one another. Currently the right mouse button rotates them, but I am unsure how to make it raise them on the y axis.

I also want them to act as if they are stacked a bit off, then they will fall. Collision and stuff is already done on the x axis, just want it like that on the Y!
Can someone help me with this, as I have been working on it for hours with no luck, and I really need to do it by Sunday otherwise I won't get anymore time to work on it for a few months!

Code below, sparkys needed, no media required.




$3000 imaginary dollars to whoever can sort this out, and hopefully implement it in, as I wouldn't know where to start.

Thankyou!

Hey look at that!
=PRoF=
23
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 12th Nov 2010 10:07
I'm sure with a little bit more maths, working out the pivot and the downward force of each side of the cube it could be done; or perhaps it would be worth looking into one of the physics plugins available for DBPro.

baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 12th Nov 2010 11:13
Quote: "$3000 imaginary dollars to whoever can sort this out"

Great! That'll really help with my imaginary debt!!

I admire you setting up your own physics system using sparky's but for something simple like boxes falling over why not just use ODE physics (it is built in to DBP)?

Login to post a reply

Server time is: 2026-07-23 02:37:33
Your offset time is: 2026-07-23 02:37:33