Playmaker Forum

Bug Reporting => PlayMaker Bug Reporting => Topic started by: jerware on June 20, 2012, 05:42:43 PM

Title: iTween Rotate To not ending acurately
Post by: jerware on June 20, 2012, 05: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.
Title: Re: iTween Rotate To not ending acurately
Post by: jeanfabre on June 21, 2012, 01:51:53 AM
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

Title: Re: iTween Rotate To not ending acurately
Post by: jerware on June 22, 2012, 02:41:12 PM
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.
Title: Re: iTween Rotate To not ending acurately
Post by: jeanfabre on June 25, 2012, 01:22:37 AM
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