Antdev Posted May 8, 2022 Posted May 8, 2022 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.
Antdev Posted May 8, 2022 Author Posted May 8, 2022 I worked it out - doh!! gsap.set("#knob", { rotation: 0 }); 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now