Gamestudio Links
Zorro Links
Newest Posts
zorro license, IB connection
by AndrewAMD. 12/06/23 17:16
Newbie Questions
by fairtrader. 12/06/23 11:29
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
5 registered members (AndrewAMD, miwok, TipmyPip, 3run, 1 invisible), 631 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
question to someone who's physics guru (william ?) #29453
06/23/04 16:31
06/23/04 16:31
Joined: Jan 2004
Posts: 3,023
The Netherlands
Helghast Offline OP
Expert
Helghast  Offline OP
Expert

Joined: Jan 2004
Posts: 3,023
The Netherlands
hi,

i am making a minigolf game using A6 PE.
but when i shoot the ball, it sometimes stays stuck in the air (only when i shoot harder.
does anybody knows if that is a bug, or something else (sorry i dont post my code, but if you know sure you can help me, you can mail/msn/icq me).

regards,

and hope someone here is good enough to help me, cuz this is bugging me since... EVER! :P


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/
Re: question to someone who's physics guru (william ?) [Re: Helghast] #29454
06/24/04 01:06
06/24/04 01:06
Joined: Mar 2003
Posts: 5,377
USofA
fastlane69 Offline
Senior Expert
fastlane69  Offline
Senior Expert

Joined: Mar 2003
Posts: 5,377
USofA
First off, how are you using the A6 PE with extra????
Are you sure you are not using Newton instead?

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 Offline OP
Expert
Helghast  Offline 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


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/
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 Offline
Senior Expert
fastlane69  Offline
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 Offline OP
Expert
Helghast  Offline 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,


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/
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 Offline
Senior Member
Lennart_hillen  Offline
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 Offline
Senior Expert
fastlane69  Offline
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 Offline
Expert
William  Offline
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);
}




Check out Silas. www.kartsilas.com

Hear my band Finding Fire - www.myspace.com/findingfire

Daily dev updates - http://kartsilas.blogspot.com/
Re: question to someone who's physics guru (william ?) [Re: William] #29461
06/25/04 18:01
06/25/04 18:01
Joined: Jan 2004
Posts: 3,023
The Netherlands
Helghast Offline OP
Expert
Helghast  Offline OP
Expert

Joined: Jan 2004
Posts: 3,023
The Netherlands
Fixed

Last edited by dennis_fantasy; 06/25/04 18:49.

Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/
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 Offline OP
Expert
Helghast  Offline 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.


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/
Page 1 of 2 1 2

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1