Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > Requests > Looking for Sinus-Formulas.
2003-04-24 09:45
Testicle
Account closed

Registered: Sep 2002
Posts: 131
Looking for Sinus-Formulas.

hi, can anyone help me? i'm looking for different formulas to calculate sinus-tables.

for example, which math-formulas produce the different sin-tables in wix-bouncer?

are there any "collections" of these formulas, or can i peek at some basic-code from sinus-creator-programms (if yes, which ones?)?


thanks in advance,
daniel.
2003-04-24 15:37
chatGPZ

Registered: Dec 2001
Posts: 11523
those "bouncers" are usually all based around the same formulae....

f(x) = offset+(sin(x)*range)

where x is in the range from 0 to 2*pi

checkout some physics books from your time at school... section "basic mechanics". there you can see how the more advanced stuff, like real looking "bounce" or "jump" is done there... (this is not sinus stuff actually) also how more complex waves are generated by combining several of the above simple formulas.
2003-04-24 19:36
WVL

Registered: Mar 2002
Posts: 924
real bouncers are made from parabola. y = a*t^2 + b*t + c. c being the starting point at t=0, b is the initial speed and a is acceleration.

good luck (you have to turn the speed _b_ around when a ball hits the floor or sumthing)

Werner
2003-04-25 12:51
chatGPZ

Registered: Dec 2001
Posts: 11523
wvl: yes ofcoz :=) thats why i suggested the physics book... calculating the curve a ball takes when thrown through the air must be one of the most common practices there :=))
2003-04-25 17:26
White Flame

Registered: Sep 2002
Posts: 136
Actually, most bouncers are done iteratively:

y = y + dy
dy = dy - gravity

with a check for y<0
2003-04-25 20:16
WVL

Registered: Mar 2002
Posts: 924
yes, ofcourse you iterate :) but that's just simplyfing the calculations and doesn't give you insight in how the movement 'looks' like.
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Fungus/Nostalgia
AmiDog
Mike
Honesty/Covenant/Ons..
Knut Clausen/SHAPE/F..
t0m3000/bo0M!^hf^ibex
NthSt4r
REBEL 1/HF
Colt45RPM
Didi/Laxity
CA$H/TRiAD
GuyGavin/HF
Guests online: 230
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Codeboys & Endians  (9.7)
4 Mojo  (9.6)
5 Coma Light 13  (9.6)
6 Edge of Disgrace  (9.6)
7 Signal Carnival  (9.6)
8 Wonderland XIV  (9.5)
9 Uncensored  (9.5)
10 Comaland 100%  (9.5)
Top onefile Demos
1 Nine  (9.7)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.5)
6 Scan and Spin  (9.5)
7 Onscreen 5k  (9.5)
8 Grey  (9.5)
9 Dawnfall V1.1  (9.5)
10 Rainbow Connection  (9.5)
Top Groups
1 Artline Designs  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Performers  (9.3)
5 Censor Design  (9.3)
Top Swappers
1 Derbyshire Ram  (10)
2 Jerry  (9.8)
3 Acidchild  (9.7)
4 Cash  (9.6)
5 Violator  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2025
Page generated in: 0.05 sec.