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.

Author
Message
pictionaryjr
16
Years of Service
User Offline
Joined: 12th Mar 2009
Location:
Posted: 27th Mar 2009 05:57
I thought of this idea when i was just fiddling around with some things.

Lets see what kind of physics effects people can make in dbc.

It can be as easy as just making something jump by simulating gravity like this-



or something as complicated or even more complicated then simulating water effects like this-



There's only one rule though, no outside media.
Link102
20
Years of Service
User Offline
Joined: 1st Dec 2004
Location: On your head, weeeeee!
Posted: 27th Mar 2009 23:38


Travis Gatlin
16
Years of Service
User Offline
Joined: 14th May 2009
Location: Oxford, Alabama
Posted: 2nd Jun 2009 18:31 Edited at: 2nd Jun 2009 18:31
how do u make DB have physics? is it easy? because i want to make an FPS shooter game and i need a script for realistic gravity.
BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 2nd Jun 2009 20:13
You just program it. There is no plugin, at least not for DBC.

A good, but simple system that could point you in the right direction is to keep track of the players vertical velocity. When you jump, that velocity is set from 0 to, say, 20. So the player will constantly be placed at his point + and movement changes and plus in the y direction his vertical velocity. Each loop that the hero isn't touching the ground you subtract your gravity constant (start with one and fine tune it from there) from it. The effect is a semi-realistic jump/fall system. Takes some work to get the whole "Touching the ground" thing to work though.

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 2nd Jun 2009 22:38
@BN2
Would I be right in thinking that when you check for ground collision and the fall would take you through the ground, whatever extra velocity is left over after subtracting the ground height is the impact on the ground? Here's code I can't explain it very well.

You could use this to enable your character to sustain injury from a high fall.

There is an eight letter word. You can insert a letter into it or remove a letter from it without changing its meaning. Answer
BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 2nd Jun 2009 23:06
You could probably do that. Normally I just set the velocity to 0, but I always run into problems jumping into ceilings and getting stuck.

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 3rd Jun 2009 02:31
@travis
Take a look at

bouncing cube

Though I wrote it a while ago, it's still relavent and should give you a bit of a starting point. In the DBC challenges, in one of the first challenges, the clock challenges, I use these equations on several blocks at once. The rotations aren't physics based, they're just random, the distance the blocks are popped into the air is based on their mass and a gravity constant.

Enjoy your day.
Travis Gatlin
16
Years of Service
User Offline
Joined: 14th May 2009
Location: Oxford, Alabama
Posted: 3rd Jun 2009 04:01
hey how about we dont take up room on pictionary jr's forum i have a post no one has answered to yet lets go there it is also called physics

Login to post a reply

Server time is: 2025-06-08 09:07:12
Your offset time is: 2025-06-08 09:07:12