Skip to content

[QUESTION] How to create rotation animation around specific pivot point. #283

@niempi2

Description

@niempi2

I am trying create rotation animation that rotates the object around a specific pivotpoint. How can I achieve this using SharpGLTF?
The following piece of code does create a rotation animation, but rotates object around global origin.


Quaternion rotation;
Node node;
Vector3 pivotPoint;


node.WithRotationAnimation("rotate", (0.0f, Quaternion.Identity), 1f, rotation));

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