playMaker

Author Topic: Rotate Around To angle?  (Read 2677 times)

markinjapan

  • Full Member
  • ***
  • Posts: 103
Rotate Around To angle?
« on: June 16, 2012, 06:06:38 AM »
Hi,

I've been playing around with the Rotate Around action and I was wondering if there is a way to rotate to a certain angle (ideally with a tween)?

To visualise what I'm doing, it's a rolling cube game.

At the moment, I am getting the euler rotation and then, when the objects rotation is equal or greater than 90, 180, 270, etc I move to another Rotate Around action. Problem with this though is that it's very inaccurate. I'd really like to be able to Rotate to the exact angle.

I guess what I am looking for would be called something like iTween Rotate Around To :)

Thanks




jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Rotate Around To angle?
« Reply #1 on: June 16, 2012, 06:26:02 AM »
Hi,

 yes, I was confronted to this problem, but can't remember what I did exactly, but the following solution will work:

attach your cube to a dummy, that is positioned at the center of rotation, then animate that dummy, then detach from the cube from this dummy. Repeat that process when ever you want to rotate "around"

 I will search my projects where I had this issue where I wanted to iTween rotate around, and get back to you, I just can't remember which project it was...

 bye,

 Jean