playMaker

Author Topic: iTween Rotate To not ending acurately  (Read 2473 times)

jerware

  • Playmaker Newbie
  • *
  • Posts: 23
    • View Profile
iTween Rotate To not ending acurately
« on: June 20, 2012, 02:42:43 PM »
I'm using the "iTween Rotate To" action on a gameObject containing a bunch of menu objects. It rotates on screen around the Y axis in a swooping motion as if it's hinged to the side of the screen. Looks great, but the Y Rotation property on that gameObject is not 0 when that action completes -- it's 1.001791e-05. That's really close, but not exactly right and it's enough to cause some items to offset horizontally in my 3D perspective menu.

I can workaround this problem by using a "Set Rotation" action on FINISHED to force a 0 property, but it would be great to see this fixed properly since I reuse this transition often elsewhere.

Of course, thanks for the awesome tool! Let me know if you need help reproducing.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14483
  • Official Playmaker Support
    • View Profile
Re: iTween Rotate To not ending acurately
« Reply #1 on: June 20, 2012, 10:51:53 PM »
hi,

 What tweening you are using? try linear, or others, and see if it makes a difference

also, are you sure your target is 0 exactly. maybe the transform rotation is the source fo the problem, not the action itself.
 
I do use belt and braces sometimes ( when I don't want to know what the problem is...) so I do sometimes force the end result, and do not rely on itween or the technic I used to get there, I just force it to make sure it's perfect. It should tho, but you know...

bye,

 Jean


jerware

  • Playmaker Newbie
  • *
  • Posts: 23
    • View Profile
Re: iTween Rotate To not ending acurately
« Reply #2 on: June 22, 2012, 11:41:12 AM »
Thanks for the reply, Jean. I'm using Cubic In and Out for the transform, and the FSM is programmed to transition from -140y to 0y in .5 seconds. It's entirely possible this is an iTween inaccuracy, not a PlayMaker problem.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14483
  • Official Playmaker Support
    • View Profile
Re: iTween Rotate To not ending acurately
« Reply #3 on: June 24, 2012, 10:22:37 PM »
Hi,

 I would think that it's something else, but difficult to say without looking at the scene. could you share screenshot of the state you control itween and I'll see if it does it on my computer too.

bye,

 Jean