Skip to content

How to use animation frames? #58

@fredrikbaberg

Description

@fredrikbaberg

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions