Jump to content
Search Community

How can I reset the rotation of a draggable

Antdev test
Moderator Tag

Recommended Posts

Hello 

 

I am trying to reset the rotation of a draggable that rotates.

Hope you don't mind me grabbing one of your examples to amend to show you my issue.

 

I have different levels in my game that use the same draggable ring.

So for a new level I want to reset the rotation to zero. 

 

My attempts are failing. I am sure I am just doing it wrong.

 

I am trying to do it using

 

gsap.set(draggable, {rotation: 0});

 

Any help much appreciated.

 

Thanks

 

Ant

See the Pen jOZWdWW?editors=1011 by antdev (@antdev) on CodePen

Link to comment
Share on other sites

  • Antdev changed the title to How can I reset the rotation of a draggable

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...