Orbiting and constant FPS

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
dandi8
Posts: 45
Joined: Thu Feb 14, 2008 2:01 pm

Orbiting and constant FPS

Post by dandi8 »

1) How to lock the framerate? Meaning I want the game to play at a constant speed on every computer.

2) Could someone post a code for a camera (or any other object) orbiting around another object? I'd like to make a 3D orbiting camera but I can manage with 2D code (as 3D is pretty much the same, just repeat the code on Y axis). I just don't know the necessary maths XD
If it exists, it can be broken.
Sylence
Posts: 725
Joined: Sat Mar 03, 2007 9:01 pm
Location: Germany
Contact:

Post by Sylence »

1) You don't want to lock the framerate, you want to make your animations framerate independent.
There are a lot of posts about this. Just search.

2) Maybe ISceneManager::createFlyCircleAnimator() is what you want.
Software documentation is like sex. If it's good you want more. If it's bad it's better than nothing.
dandi8
Posts: 45
Joined: Thu Feb 14, 2008 2:01 pm

Post by dandi8 »

Didn't look at it yet but I really, really doubt it's what I want.

As I guess the FlyCircleAnimator animates something moving around a circle, correct. But I want to be able to move back and forth around the circle and I'm not sure if that's possible with that.
If it exists, it can be broken.
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

dandi8 wrote:As I guess the FlyCircleAnimator animates something moving around a circle, correct. But I want to be able to move back and forth around the circle and I'm not sure if that's possible with that.
Search for spherical AND coordinates or maybe orbit. You should find what you're looking for.

Travis
Post Reply