Forum rules - please read before posting.

Draggable object on a hinge track - rotation problem

Hi!

First of all, thank you for a fantastic tool! A few months ago, making games seemed like an impossible task. Now it is easy as pie!

We have a little problem. We have made a mini game that uses draggable objects on looped hinge tracks (see image below). Everything works pretty much as it should. There is just one problem:

When clicking on the tumblers to start the drag, if the starting point is on the left half of the object, dragging will rotate the tumbler to the direction that one drags.

However, if the clicked starting point is on the right half of the object, the tumbler rotates to the opposite direction of where one drags.

I use the word "click" here. The issue is same on touch screens as well.

What are we doing wrong? Any help would be much appreciated!

Thanks again!

image

Comments

  • Welcome to the community, @pengustudios - nice to see someone making use of draggables.

    Without seeing how your Draggable / HingeTrack is set up in the Scene window / Inspector, I can only speculate - but make sure Align drag vector to front? is checked in the HingeTrack's Inspector.
  • Thanks @ChrisIceBox ! Happy to be here & real glad I found Adventure Creator. Draggables are real great to have. We will be using them a lot. 

    Here are some images, that will perhaps help you find out what we have done wrong. The Align Drag Vector to front is ticked, yes.

    image

    image


    image
    Thanks for your time!

  • Thank you for the screenshots - I've been able to recreate the issue, and it looks like a bug.  I will look to fix this as part of the upcoming v1.51 update, which should be out in the next couple of weeks.
  • Thanks so much for your help! Looking forward to v1.51.

    Cheers!
  • Actually, scratch that..

    The inversion effect is to compensate from what AC thinks is "the back" of the draggable object, which in this case appears to be wrong.  Try rotating the Hinge to either (90, 90, 0) or (90, 270, 0).
  • (90,90,0) seemed to have solved it. I'll do more testing & get back to you, if things get strange again.

    Thanks a lot!

    Markku


  • Nice, me too will be using lots of these draggable features.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.