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

How to use animation frames? #58

Open
fredrikbaberg opened this issue Sep 17, 2021 · 1 comment
Open

How to use animation frames? #58

fredrikbaberg opened this issue Sep 17, 2021 · 1 comment

Comments

@fredrikbaberg
Copy link

I've managed to get BabylonJS running, but am unsure how to get animations to work.
I have a project in JavaScript where animations works, and am trying to mimic this in a Blazor project. Is there a straightforward way to do so? I currently only need to rotate an object.

The two methods I've seen are using either render loop (https://doc.babylonjs.com/divingDeeper/animation/render_frame_animation) or keyframes https://doc.babylonjs.com/divingDeeper/animation/animation_design).
My issue with keyFrames is that setKeys(keyFrames) expects keyFrames to be of type IAnimationKey[], and I can't figure out how that part works.

@canhorn
Copy link
Owner

canhorn commented Sep 25, 2021

This is as issue that will be better tracked in the generator project, I will be transfering this ticket there and track it as a feature request.
With the generated code it does not include the API contract details in the interface, so it is harder to create a poco for the interface that would make this easier to implement.

@canhorn canhorn transferred this issue from canhorn/BabylonJS.Blazor.Game.Tutorial Sep 25, 2021
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

No branches or pull requests

2 participants