Need help on a game tat am making...its called "FreeFall"

Hello all u creative ppl out there! Am makin this game n i ve come across a few probs. Am a rookie in this field....well the game is simple n has to do with a free falling ball. u see the ball dynamics is similar to a free falling body.....in the program i have written.....the ball falls under an approx of g=9.8 m/s2.....i am trying to give the ball an approx simulation of a free falling body. When the ball hits a line in its path it does a bounce and then its motion is defined by the line's slope and then fall off it.....just like how a ball would behave in the real world. Now am not lookin for a precision simulation.....just an approximation. my problem is that when i change the line's slope the ball moves pretty ok but when i change the slope of the line when the ball is in motion along the previous slope, the y-directional motion is more than required n so its sinkin in....i guess it because of the approximations i have taken....not sure....thx in advance.....:)

[989 byte] By [MyJavaStorya] at [2007-10-3 3:53:53]
# 1
> Am makin this game n i ve come across a few probsi thk u hv 2 just go frb np lat sewt jm mrpl tam....and ur prob sol!now ur doubts r cleared.~
yawmarka at 2007-7-14 21:51:50 > top of Java-index,Other Topics,Java Game Development...
# 2

yawmark gr8 goin....try a bit more harder...am sure u can improve ur english...if u cant make out the short forms i use...pls...dont even bother to reply alright.....cause the query is posted out to ppl who have this thing called common sense which somehow has vanished frm ur brain...peace out!

MyJavaStorya at 2007-7-14 21:51:50 > top of Java-index,Other Topics,Java Game Development...
# 3

Hi MyJavaStory,

I have a couple of theories of what could be going wrong.

I've had problems when doing updates at each frame without calculating the trajectory in between updates.

In some cases, if a sphere is moving quickly enough, it can pass through walls. The way I got around this was to do swept sphere calculations instead, where I would find the exact time and point of impact (between frame updates) and then re-calculate the new trajectory for the next frame.

I hope this helps.

ModelSmitha at 2007-7-14 21:51:50 > top of Java-index,Other Topics,Java Game Development...
# 4

> yawmark gr8 goin....try a bit more harder...am sure u

> can improve ur english...if u cant make out the short

> forms i use...pls...dont even bother to reply

> alright.....cause the query is posted out to ppl who

> have this thing called common sense which somehow has

> vanished frm ur brain...peace out!

No, this is posted on a public forum with an international audience. You can't control who posts, or what they post. But I would suggest that you take the criticism on board, as it will allow a wider audience to understand your question, and give you a potentially better chance of getting a decent reply.

macrules2a at 2007-7-14 21:51:50 > top of Java-index,Other Topics,Java Game Development...
# 5

> yawmark gr8 goin....try a bit more harder...am sure u can improve ur english...

You're criticizing my use of grammar? Why?

> if u cant make out the short forms i use...

I can decipher your posts, but by posting in the manner in which you do, you indicate that you're not particularly interested in getting your message across clearly. This may not be your intent, but you leave the irrevocable impression that you can't be bothered with taking the time to write in anything but a careless and sloppy manner.

You'll tend to get better, faster answers to your questions on a technical forum if you refrain from slang. If you don't like that advice, you're free to ignore it to your own detriment.

pls...dont even bother to reply alright.....

As mentioned, this is a public, largely unmoderated forum. If you aren't prepared to have your posts evaluated and responded to, it's probably a good idea to refrain from posting anything at all in order to preserve your sensitivities.

> cause the query is posted out to ppl who have this

> thing called common sense which somehow has

> vanished frm ur brain...peace out!

I would argue that writing like a semi-literate **** on a technical forum in order to solicit useful answers displays an inherent lack of common sense, so perhaps you're in the same boat. Furthermore, insulting people at the forum on which you're hoping to receive help strikes me as a bit thin in the common-sense department as well. But that's just my impression...

Cheers!

~

yawmarka at 2007-7-14 21:51:50 > top of Java-index,Other Topics,Java Game Development...
# 6

hello modelsmith! thanks for ur feedback. actually i tried to attain that kind of a precision but was not sucessful....am not all tat well versed wit java so really dont know its tricks. there was always an offset. am using the intersects() method to find out when the ball hits the line. the method works out ok if the line's slope is less...otherwise its a tragedy

:( . can u tell me how u implement the sphere swept concept because i think tats the only way out...:). thanks again smith.

MyJavaStorya at 2007-7-14 21:51:50 > top of Java-index,Other Topics,Java Game Development...
# 7

howdie dude yawmark.....hey no offense okay...but to me, in this forum professionalism is not using precise english literature...rather gain some knowledge from ppl's queries and at the same time get solution for probs tat i face :) and i really dont hve time to write down entire words....java programming is not my career...am an electronics enginer...okee dudey...just tat i want to develop this game so very much!...hey nothin personal ok...take care n adios!!

MyJavaStorya at 2007-7-14 21:51:50 > top of Java-index,Other Topics,Java Game Development...
# 8

> howdie dude yawmark.....hey no offense okay...but to

> me, in this forum professionalism is not using

> precise english literature...rather gain some

> knowledge from ppl's queries and at the same time get

> solution for probs tat i face :) and i really dont

> hve time to write down entire words....java

> programming is not my career...am an electronics

> enginer...okee dudey...just tat i want to develop

> this game so very much!...hey nothin personal

> ok...take care n adios!!

When you are requesting help, if you don't bother to "take the time" to write out words in full, then you can expect this type of response to your questions. Taking the time to correctly formulate a question will ensure that people will be more willing to give their time to answer your question... Hey, it's nothing personal, ok!

macrules2a at 2007-7-14 21:51:50 > top of Java-index,Other Topics,Java Game Development...