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 / Physics question?

Author
Message
Zeus
20
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 5th Sep 2010 06:59
Lets say I build a bottom row of cubes and a second rows of cubes with one of the cubes in the second missing. There is a cube in front of the player object that would fit in the missing cube hole. How can I make the physics of that cube be pushed by the player and just fall into the hole? I have no idea where to even start to be honest.

Thanks!
Zeus
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 5th Sep 2010 09:54
If I understand you right it wouldn't fall straight in and look natural as 'realistically' it would fall in and get wedged at an angle so I wouldn't use physics for this I'd use a procedural method.

I'd set the cube up to rotate into position when it's been pushed into just the right spot.

Really without any code it's hard to give a great answer, sorry. Do you have any code I could take a look at?

Zeus
20
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 5th Sep 2010 16:32
I am afraid I do not really have any code for the moment I am testing around. I will see what I can do with the help you have given me.

Thanks!

Login to post a reply

Server time is: 2026-07-22 17:51:05
Your offset time is: 2026-07-22 17:51:05