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
Orbiting and constant FPS
Orbiting and constant FPS
If it exists, it can be broken.
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.
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.
Search for spherical AND coordinates or maybe orbit. You should find what you're looking for.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.
Travis
-
FuzzYspo0N
- Posts: 914
- Joined: Fri Aug 03, 2007 12:43 pm
- Location: South Africa
- Contact: