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.

Invert axis on a “drag rotate” puzzle

Home Forums Puzzles Invert axis on a “drag rotate” puzzle

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #45996
    preferens.se
    Customer

    How do I invert the rotation of an object when using the “Drag rotate” puzzle?

    In a project of mine i have a couple of doors that can be rotated by clicking and dragging over them. However the movement feels backwards.

    User @gliftek suggested using a “numbers puzzle for multiplication times negative 1”. But I don’t understand how to do that.

    Staff member @ivan suggested adding this line of code in the main .js file:

    if (app.controls) {
        app.controls.rotateSpeed *= -1;
    }

    But doing so doesn’t seem to do anything in my case.

    IDK maybe I’m just missing something obvious here.

    #46003
    xeon
    Customer

    the java script above will rotate everything differently..its a global setting. If you feel the door is rotating backwards but the camera rotation is fine…you will need a different approach.

    You may want to set a constraint on the door….once you have it…set to the degrees you want…flip the max and min and give that a shot in the app.

    Xeon
    Route 66 Digital
    Interactive Solutions

    #46144
    dssctr
    Customer

    If it’s a room the puzzle should look like this.

    Attachments:
    You must be logged in to view attached files.
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.