Updated K-Probe

Discuss scenes and videos made with Algodoo.

Updated K-Probe

Postby Kilinich » Thu Oct 22, 2009 11:28 pm

Laser tech for measuring everything.
Rating: rated 8.1
Filesize: 19.49 kB
Comments: 19
Ratings: 13
download
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: Updated K-Probe

Postby KarateBrot » Fri Oct 23, 2009 1:41 am

It's very cool.
Normally you run into trouble by just taking a laser and do calculations with acceleration because there is a lot of jitter. i wonder how you did this without editing the laser but anyway having nearly no jittering at 100% simulation speed.
Image
User avatar
KarateBrot
 
Posts: 825
Joined: Mon Aug 31, 2009 7:32 pm
Location: Germany

Re: Updated K-Probe

Postby Kilinich » Fri Oct 23, 2009 8:10 am

KarateBrot wrote:It's very cool.
Normally you run into trouble by just taking a laser and do calculations with acceleration because there is a lot of jitter. i wonder how you did this without editing the laser but anyway having nearly no jittering at 100% simulation speed.


It's all about time delta you calculate. Strangely thing - minimum quant of time on 100% sim speed can be 0.01, 0.02 and even 0.03 sec sometime.

Then you calculate speed you pick time delta = sim.time - <prev sim.time>.
Then you calculate acceleration you must mention that speed is average in [prev sim.time .. sim.time] range so you should use time delta = (prev time delta + time delta) /2.
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: Updated K-Probe

Postby KarateBrot » Fri Oct 23, 2009 11:03 am

Yeah I know it's not very precise with the time. Sometimes it was even 0,0s when I tested it. I find it strange but if you lower the simulation speed it's getting more imprecise due to the laser frequency is constant. My solution was to quarter the frequency but you know, slower rate of updating.
To use an average time delta is pretty neat, I love it :clap:
Image
User avatar
KarateBrot
 
Posts: 825
Joined: Mon Aug 31, 2009 7:32 pm
Location: Germany

Re: Updated K-Probe

Postby Jelmerholland » Sun Oct 25, 2009 8:15 pm

Still don't know how it works, still dont'know where and how i can use it, but it is nice :angel:
User avatar
Jelmerholland
 
Posts: 61
Joined: Mon Aug 31, 2009 7:51 pm
Location: NL


Return to Scenes

Who is online

Users browsing this forum: No registered users and 2 guests