Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML Rotation around a moving point

QML Rotation around a moving point

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 903 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Constantly_Stuck
    wrote on last edited by
    #1

    I am trying to make a game where the player is centred on screen and the game canvas moves and rotates around them.
    The game canvas will be larger than the screen size.
    I need to be able to rotate the game canvas around the player - therefore the rotation point will change as the player moves. The rotation point should always be the centre of the player.

    Can anyone help with how to rotate the game canvas around a moving point like this?

    Thank you

    1 Reply Last reply
    0
    • J Offline
      J Offline
      JordanHarris
      wrote on last edited by
      #2

      I'm super new to Qt Quick so I'm not really sure, but couldn't you just bind the player's position to the rotation point? That seems like it would work.

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Constantly_Stuck
        wrote on last edited by
        #3

        Thanks for the idea... not sure if it will work yet, but it has given me food for thought and I'm going to come back to this... I'll post here again when I have tried it. For the time being it's moved me in a different direction.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved