Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (Nymphodora), 490 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 1
Page 2 of 2 1 2
Re: Ball steering Physics [Re: Dragon] #37544
12/13/04 15:40
12/13/04 15:40
Joined: Sep 2003
Posts: 489
Switzerland
Dragon Offline OP
Senior Member
Dragon  Offline OP
Senior Member

Joined: Sep 2003
Posts: 489
Switzerland
can no one help me?:(


Re: Ball steering Physics [Re: Dragon] #37545
12/14/04 00:45
12/14/04 00:45
Joined: May 2002
Posts: 2,541
Berlin
EX Citer Offline
Expert
EX Citer  Offline
Expert

Joined: May 2002
Posts: 2,541
Berlin
Would the physics (no real physics) of MandrinPinball work for you? HM... BAd idea.... Real physics are better if you can use them.

EX Citer

Last edited by EX Citer; 12/14/04 00:46.

:L
Re: Ball steering Physics [Re: Dragon] #37546
12/14/04 10:19
12/14/04 10:19
Joined: Sep 2003
Posts: 3,236
San Diego, CA
M
Marco_Grubert Offline
Expert
Marco_Grubert  Offline
Expert
M

Joined: Sep 2003
Posts: 3,236
San Diego, CA
Can you mail me your level & code ? mgrubert@conitec.net

Re: Ball steering Physics [Re: Marco_Grubert] #37547
12/15/04 07:41
12/15/04 07:41
Joined: Sep 2003
Posts: 3,236
San Diego, CA
M
Marco_Grubert Offline
Expert
Marco_Grubert  Offline
Expert
M

Joined: Sep 2003
Posts: 3,236
San Diego, CA
It's really just a matter of playing around with the numbers until the ball acts the way you want it to. Reducing friction and torque are a good start but if your level planes have different slopes then obviously the setting that just about keeps the ball from rolling up the steep slope will allow the ball to easily climb a shallow one.

A couple of ideas:
Compare current and previous z position. If z has increased then apply a force from current to old position or even better add a counter-torque that slows down the ball so that it can't move on in this direction. Also check the current rotational speed and stop adding torque if it's above a certain threshold.

Re: Ball steering Physics [Re: Marco_Grubert] #37548
12/15/04 08:08
12/15/04 08:08
Joined: Jun 2003
Posts: 261
Broken Arrow ,OK
BERG Offline
Member
BERG  Offline
Member

Joined: Jun 2003
Posts: 261
Broken Arrow ,OK
have you taken a physics class? if you did, think about how a force is broken up into components, and set the up component to the up key, the down component to the down key, and so on. and set this into a while loop.
if you don't know how to break it up into comonents i will help you out. but i will not spill my ball code just like that tho! it took me a while to figure it out!

Alex

Re: Ball steering Physics [Re: BERG] #37549
12/16/04 02:03
12/16/04 02:03
Joined: Sep 2003
Posts: 489
Switzerland
Dragon Offline OP
Senior Member
Dragon  Offline OP
Senior Member

Joined: Sep 2003
Posts: 489
Switzerland
Thanks for all the help.
I think I can solve the problem now. And otherwise I'll ask again.


Page 2 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