Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (NnamueN, 1 invisible), 1,489 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
jerky movement with zero gravity #30483
07/15/04 21:36
07/15/04 21:36
Joined: Aug 2003
Posts: 275
Germany
kopitzki Offline OP
Member
kopitzki  Offline OP
Member

Joined: Aug 2003
Posts: 275
Germany
I have spheres moving endlessly without any gravity. They are to move quite slowly. The problem is, they move jerkily like at a frame rate of 10 fps. Have I missed anything with the settings?:

Code:
 


FUNCTION bitaction()

{
var v[3];
my.flag8=on;
my.transparent=on;
my.alpha=80;
my.material=mat_kugel;

v.x=1000;vec_rotate(v.x,emitter.pan);//emitter=emitting entity

phent_settype(my, PH_RIGID, PH_sphere);
phent_setmass(my, 0.2, PH_sphere);
phent_setfriction(my, 0);
phent_setelasticity(my, 100, 10);
ph_setgravity(nullvector);
phent_enable(my,1);
phent_setmaxspeed( my, 1200, 500);
phent_addcentralforce ( my, v );

}


FUNCTION init_bitting()

{

you=ent_create ("sphere.mdl", emitter.x, bitaction);//emitter=emitting entity
wait(1);

}


on_e=init_bitting;




Re: jerky movement with zero gravity [Re: kopitzki] #30484
07/16/04 06:05
07/16/04 06:05
Joined: Aug 2003
Posts: 275
Germany
kopitzki Offline OP
Member
kopitzki  Offline OP
Member

Joined: Aug 2003
Posts: 275
Germany
Although nobody seems to be interested in this topic, I'll tell you what I've found out: My monitor has a maximum of 60 Hertz. After setting PH_FPS_MAX_LOCK to 60 everything works fine.


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