Playmaker Forum

Bug Reporting => PlayMaker Bug Reporting => Topic started by: BigDaz on September 28, 2013, 05:53:14 PM

Title: Transform SetRotation X Axis Bug[SOLVED]
Post by: BigDaz on September 28, 2013, 05:53:14 PM
When rotating any object in the X axis past 90 degrees, it splits in 2 and flickers between the 2 positions. The other axis work OK.

Use the slider to rotate the box -
https://dl.dropboxusercontent.com/u/181824179/Export.html
Title: Re: Transform SetRotation X Axis Bug
Post by: jeanfabre on September 30, 2013, 01:49:07 AM
Hi,

 Can you explain what you are doing to achieve this?

bye,

 Jean
Title: Re: Transform SetRotation X Axis Bug
Post by: BigDaz on September 30, 2013, 08:22:02 AM
I've just done exactly as this tutorial but using the X axis instead of the Y axis-

Title: Re: Transform SetRotation X Axis Bug
Post by: BigDaz on October 02, 2013, 02:53:52 PM
Or is it just me?
Title: Re: Transform SetRotation X Axis Bug
Post by: jeanfabre on October 03, 2013, 02:19:13 AM
Hi,

That's why you are having gimbal loack issues I guess. Cause the range of movement differs based on the axis orientation.

can you pm me with your project? I'll look at it.

bye,

Jean
Title: Re: Transform SetRotation X Axis Bug
Post by: BigDaz on October 06, 2013, 07:30:19 AM
I think I've found the problem to be the slider gui rather than the object rotation.

In this demo the slider can be switched off with the button on the right. When the slider is turned off the flickering bug stops. It seems to pick one of the rotations at random though.

https://dl.dropboxusercontent.com/u/181824179/Arse.html

This is the project file:
https://www.yousendit.com/download/OGhkUXVwbWdoMldybHNUQw
Title: Re: Transform SetRotation X Axis Bug
Post by: BigDaz on October 10, 2013, 04:22:33 PM
Is this a playmaker bug or a Unity bug?
I'll report it to the Unity guys if need be.
Title: Re: Transform SetRotation X Axis Bug
Post by: jeanfabre on October 11, 2013, 01:42:08 AM
Hi,
 
 No, there is no bug here. It's just the way rotation works...

You must define the y and z values for the rotation, so instead of leaving y and z to "none", set it to 0 and it will work just fine. If you leave it none, then PlayMaker doesn't affect these components and they are free for gimbal lock.

bye,

 Jean
Title: Re: Transform SetRotation X Axis Bug[SOLVED]
Post by: BigDaz on October 11, 2013, 03:17:24 PM
Fixed, thanks a lot. :)