We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

object rotation degrees vs number of object rotations

Home Forums General Questions object rotation degrees vs number of object rotations

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #70214
    xeon
    Customer

    I am hoping someone other there has already solved this problem.

    I have a cylinder I need to rotate. I need to calculate the number of total degrees the cylinder has rotated. As an example if the cylinder rotates 2 complete turns I need a value of 720 if it rotates in the opposite direction 2 complete turns I need a value of -720.

    Currently it seems the only values I can get from the get object rotation is : World Space 0 to 90 and then -90 to 0… and in local space I can only get values 0 to 180 and -180 to 0.

    I am hoping someone has worked out some logic or a method to calculate the total rotation?
    Given the cylinder can be rotated in either the postive or negative direction and will be controlled by a user so they may go back and forth quite a bit.

    Any help would be greatly appreciated.

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com
    Tutorials - https://www.xeons3dlab.com

    #70278

    Hi xeon,

    Unfortunately the current way how the drag rotate puzzle works does not allow the user to capture the total amount of rotation. In fact it’s a fundamental limitation of how rotations are handled in Verge3D. We are using quaternions which do not preserve the information about previous rotation value. :-(

    Chief 3D Verger | LinkedIn | Twitter

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