|
|
Re: question to someone who's physics guru (william ?)
[Re: fastlane69]
#29455
06/24/04 20:24
06/24/04 20:24
|
Joined: Jan 2004
Posts: 3,023 The Netherlands
Helghast
OP
Expert
|
OP
Expert
Joined: Jan 2004
Posts: 3,023
The Netherlands
|
yeah sorry, i've pro team edition for our current team now. thanks in advance 
|
|
|
Re: question to someone who's physics guru (william ?)
[Re: Helghast]
#29456
06/25/04 01:07
06/25/04 01:07
|
Joined: Mar 2003
Posts: 5,377 USofA
fastlane69
Senior Expert
|
Senior Expert
Joined: Mar 2003
Posts: 5,377
USofA
|
Ok, this we can play with. I apologize in advance for not being Wiliam  There are very few ways for that behaiviour to happen: 1) One way is that your are unregistering the ball in the air and thats why it's hanging. 2) You could also be setting gravity to zero at some point... 3) Your drag coefficient might be set to 100....this will cause your ball to unaturally lose velocity and seem to hang at the end Check these settings out and go from there. Ultimately, you might need to post your relavant code.
|
|
|
Re: question to someone who's physics guru (william ?)
[Re: fastlane69]
#29457
06/25/04 01:25
06/25/04 01:25
|
Joined: Jan 2004
Posts: 3,023 The Netherlands
Helghast
OP
Expert
|
OP
Expert
Joined: Jan 2004
Posts: 3,023
The Netherlands
|
ok this is set in my ball's behaviour: Code:
ph_setcorrections(25000, 100 ); phent_settype ( my, ph_rigid, PH_sphere); phent_setmass(my, 5 ,PH_SPHERE); phent_setdamping ( my, 10, 80 ); phent_setgroup (my,2); phent_setelasticity ( my, 40, 25); phent_setfriction ( my, 85 ); ph_setgravity( vector(0,0,-250) ); that is the only physics i have set. hope you can come out any further , because i cant :P o and about not being william... i only ment to say, maybe william  thanks in advance and regards,
|
|
|
Re: question to someone who's physics guru (william ?)
[Re: Helghast]
#29458
06/25/04 02:11
06/25/04 02:11
|
Joined: Aug 2002
Posts: 365 netherlands
Lennart_hillen
Senior Member
|
Senior Member
Joined: Aug 2002
Posts: 365
netherlands
|
Hello,
I'm working together with Dennis on this minigolf game, and I feel like we really need better physics.
It's not only this bugg that's bothering me, I think we could really use more realistic physics, since the ball now kinda moves like its a balloon...
Dennis is our scripter, I'm level designer, so I won't be able to help alot in this part, so I want to ask everyone around these boards if they might know some tips or scripts that might help dennis out?, since it's just a little bit to hard for us.
I thank you all for helping us!
Lennart
|
|
|
Re: question to someone who's physics guru (william ?)
[Re: Lennart_hillen]
#29459
06/25/04 02:28
06/25/04 02:28
|
Joined: Mar 2003
Posts: 5,377 USofA
fastlane69
Senior Expert
|
Senior Expert
Joined: Mar 2003
Posts: 5,377
USofA
|
Ughhh...the "B" word again.....  I have perfect behaiviour of my physics entities, thus I know this isn't a bug. The key to good game physics is not trying to take real world physics numbers and use them... rather tweak the numbers so that it looks real and keep everything cohesive within your virtual world. If you give a feather a mass of 10 and a battleship a mass of 100, it doesn't matter that this obviously can't be the case as long as feather and battleship behaive as you want them to. With that in mind, 1) your mass and gravity seem low. Try a mass of 50 and a gravity of -400. Does it still behaive the same? Better? Worse? 2) you have a set_group command which is used as a mask to enable or disable the physics engine. You might be using this else where which would explain why your model "hangs".
|
|
|
Re: question to someone who's physics guru (william ?)
[Re: fastlane69]
#29460
06/25/04 03:10
06/25/04 03:10
|
Joined: Aug 2001
Posts: 2,320 Alberta, Canada
William
Expert
|
Expert
Joined: Aug 2001
Posts: 2,320
Alberta, Canada
|
I'm sorry that I never posted earlier, since I did not notice this. Anyways, Fastlane stole the words out of my mouth(Thanks).  Try setting your mass higher, gravity higher, and as well see what it does without the damping. Also remember to only set an object within the physics system once(dont have it in a while loop). Here is some code that works fine for me, it shouldn't be a bug that your experiencing. Code:
Var earthgravity[3] = 0,0, -300;
action physics_ent { phent_settype(my, PH_RIGID, PH_sphere); ph_setgravity ( earthgravity ); phent_setmass(my, 15, PH_box); phent_setfriction(my,70); phent_setelasticity(my, 30, 10); }
|
|
|
Re: question to someone who's physics guru (william ?)
[Re: Helghast]
#29462
06/25/04 18:51
06/25/04 18:51
|
Joined: Jan 2004
Posts: 3,023 The Netherlands
Helghast
OP
Expert
|
OP
Expert
Joined: Jan 2004
Posts: 3,023
The Netherlands
|
...BOF!... we fixed the problem... silverquest had forgotten to put a room all around the levels, so it got stuck in space  ...BOF!... sorry about all the trouble. regards for helping anyway.
|
|
|
|