Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: default orbit in given time #2016

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

v0id-strike
Copy link
Contributor

added --camera-orbit option and test the option

Copy link

You are modifying libf3d public API! ⚠️Please update bindings accordingly⚠️!
You can find them in their respective directories: python, java, webassembly.

@@ -237,6 +237,24 @@ void animationManager::Tick()
{
this->Window.render();
}

// Check if camera orbit option is enabled
if (this->Options.scene.camera.orbitTime > 0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont think camera orbit should be handled in animation, but it should be handled in the eventLoop directly.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I even think the camera orbit should be handled in the application event loop, not in the lib

namespace options {
namespace scene {
struct camera {
double orbit_time = 0.0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that not how you add an option, look at options.json :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants