Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
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
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
3 registered members (TedMar, AndrewAMD, fairtrader), 578 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
how to accel? #10344
09/12/02 21:58
09/12/02 21:58

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



long time ago, i used accel to move my entities this

code:
accel(my.relSpeed, my.relForce, 0.7);
accel(my.absSpeed, my.absForce, 0.7);
vec_set(my.relForce, nullvector);
vec_set(my.absForce, nullvector);
ent_move(my.relSpeed, my.absSpeed);

way. now i replaced accel with script

code:
speed += time * ( force - speed * frinction );

and it doesnt seem to be time corrected. but i find no error in my accel (btw, its the accel-replacement from the movement.wdl)
so whats my problem?

(thanks in advance)

Re: how to accel? #10345
09/16/02 18:37
09/16/02 18:37

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



ok, let me proof that this kind of acceleration does not work properly:

this is the formula
speed += time * ( force - speed * frinction)

1) speed=10, force=0, frinc=0.5; time=1;

10 += 1*(0-10*0.5) // == 5

2) speed=10, force=0, frinc=0.5; time=0.5;

10 += 0.5 * (0-10*0.5) // == 7.5
7.5 += 0.5 * (0-7.5*0.5) // == 5.625

the difference something about 10%

Re: how to accel? #10346
09/16/02 22:20
09/16/02 22:20
Joined: Oct 2001
Posts: 1,407
Helsinki, Finland
Phantom88 Offline
Expert
Phantom88  Offline
Expert

Joined: Oct 2001
Posts: 1,407
Helsinki, Finland



Programmer, Gamer ICQ #: 157485106 | Xfire: Phantom1988 | MSN: lauri_andler@hotmail.com | AIM: FinPhantom | YAHOO: FinPhantom
Re: how to accel? #10347
09/17/02 15:55
09/17/02 15:55

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



not that shy! i dont bite [Smile] [Smile]

Re: how to accel? #10348
09/17/02 22:01
09/17/02 22:01
Joined: Oct 2001
Posts: 1,407
Helsinki, Finland
Phantom88 Offline
Expert
Phantom88  Offline
Expert

Joined: Oct 2001
Posts: 1,407
Helsinki, Finland
I said something(then posted), then thought again, and figured out, that what i said was wrong(and edited it). Sorry...

~Phantom88~


Programmer, Gamer ICQ #: 157485106 | Xfire: Phantom1988 | MSN: lauri_andler@hotmail.com | AIM: FinPhantom | YAHOO: FinPhantom
Re: how to accel? #10349
09/18/02 15:10
09/18/02 15:10

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



i'm interested in your theories [Smile]
i dont know how to go on, even a guess may help [Frown]


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