Rotation problem

This topic contains 3 replies, has 3 voices, and was last updated by  dgu 3 years, 6 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #31683

    aicha11
    Member

    I want to rotate an object in my scene arround itself because it still rotate arround the initial position
    any idea?

    #38664

    Joe Davis
    Member

    Hi,

    The order that you execute transformations on a given matrix will affect the outcome of those operations. If you want to rotate an object around it’s centre, you should rotate it first then translate. If you translate first, the rotation will factor in the translation that has already been applied to the matrix.

    Regards,
    Joe

    #38665

    aicha11
    Member

    so how can I move a wheelchair in a house because it should be translated then rotate to enter in a home for example
    is there any other solution?

    #38666

    dgu
    Member

    in the scope of your question ,you could for instance create an animation (model space coordinate ) where you can do what you want !!!! and then get the world coordinate using GetWorldMatrix(Node);.

    you can do everything you want with the sdk make sure you understand :
    http://www.codinglabs.net/article_world_view_projection_matrix.aspx very well first if i may advise 🙂

    Kind regards
    david

Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.