Frequency problem

About advanced scenes, and the Thyme scripting language used in Algodoo.

Frequency problem

Postby Roman » Wed Apr 27, 2011 9:11 pm

Hey all!
It's me again and I have a little problem with frequency. My SE's works good on 200 Hz, default config runs on 100 Hz.
It's possible to apply in my scene 200 Hz and enforce this value in other PC in Phun. Yes i still work in Phun.
If it's available how to do that?

I'm really need this.
User avatar
Roman
 
Posts: 43
Joined: Sun Sep 06, 2009 9:32 pm
Location: Tri-city, Poland

Re: Frequency problem

Postby TC42 » Wed Apr 27, 2011 9:19 pm

Yes it is possible, I used it in my F-15 game. Just put sim.frequency=200 into an object's oncollide.

But remember to tell people that you've done so...
Image
Spambot wrote:Nowadays, memes usually are studied less in the field of biology, but more with the arena of psychology along with sociology. But, the major area of a meme, getting embraced and imitated all the time is what’s at any core connected with any meme.
User avatar
TC42
 
Posts: 984
Joined: Sun Jan 09, 2011 1:53 pm
Location: $ sudo apt get-install sandwich_

Re: Frequency problem

Postby Roman » Wed Apr 27, 2011 10:06 pm

It doesn't work :/ I write this code into falling box when it's fall nothing changes. I'm sure I do something wrong can You guide how to do that?

I repeat i work in Phun
User avatar
Roman
 
Posts: 43
Joined: Sun Sep 06, 2009 9:32 pm
Location: Tri-city, Poland

Re: Frequency problem

Postby bozbez » Wed Apr 27, 2011 11:13 pm

Ha, fail, I was just about to say use lasers ;)
Anyways, I thought it was sim.timedelta in phun?
Image

Go here. Now. That's Now. Not in 5 minutes. Now.
User avatar
bozbez
 
Posts: 149
Joined: Tue Apr 12, 2011 7:01 pm

Re: Frequency problem

Postby electronicboy » Thu Apr 28, 2011 12:22 am

yep, its sim.timedelta in phun,
The default sim.timedelta, however, is
Code: Select all
0.0099999998


In theory, you could just double that to get 200hz, but i think it may be a game of trial and error to get it to exactly 200
When asking for help, READ THE STICKIES!
electronicboy
 
Posts: 1694
Joined: Mon Aug 31, 2009 6:18 pm

Re: Frequency problem

Postby Roman » Thu Apr 28, 2011 1:02 am

I think frequency problem in Phun is resolved. sim.timedelta means frequency.

I resolved this code:
timeDelta = 0.0099999999 = 100 Hz
timeDelta = 0.0049999999 = 200 Hz

If timedelta decreases then frequency grows up! That's it!
User avatar
Roman
 
Posts: 43
Joined: Sun Sep 06, 2009 9:32 pm
Location: Tri-city, Poland

Re: Frequency problem

Postby bozbez » Thu Apr 28, 2011 8:52 am

It's the number of seconds before it updates itself.
Image

Go here. Now. That's Now. Not in 5 minutes. Now.
User avatar
bozbez
 
Posts: 149
Joined: Tue Apr 12, 2011 7:01 pm

Re: Frequency problem

Postby Dare » Thu Apr 28, 2011 9:21 am

If you ever wonder about commands in Phun/Algodoo, it is great to look at this list: http://www.algodoo.com/forum/viewtopic.php?f=13&t=83
ImageImage
TC42 wrote:Dare, you are creepy.

Official Algobox Admin! Please PM me if you have any issues regarding Algobox.
User avatar
Dare
 
Posts: 833
Joined: Sat Nov 21, 2009 4:27 pm
Location: Sydney, Australia

Re: Frequency problem

Postby bozbez » Thu Apr 28, 2011 4:46 pm

Yeah, but the list is for Algodoo, not Phun.
Image

Go here. Now. That's Now. Not in 5 minutes. Now.
User avatar
bozbez
 
Posts: 149
Joined: Tue Apr 12, 2011 7:01 pm


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 4 guests