Skip to content

Examples !? #600

@nihalkenkre

Description

@nihalkenkre

Hello.

I would like to rotate an object by an angle around a axis.

in cglm the following can be done
glm_rotate(object_transform_matrix, angle, axis);

How can this be achieved in glam?

Do i need to extract the rotation from the object transformation matrix and then somehow rotate it further by the angle and around the axis and then create another matrix which would be the new object_transform_matrix.

Thank you in advance.
Cheers

Someone with experience with this crate please add a few examples.

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