playMaker

Author Topic: Transform SetRotation X Axis Bug[SOLVED]  (Read 4818 times)

BigDaz

  • Playmaker Newbie
  • *
  • Posts: 11
Transform SetRotation X Axis Bug[SOLVED]
« 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
« Last Edit: October 11, 2013, 01:42:52 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Transform SetRotation X Axis Bug
« Reply #1 on: September 30, 2013, 01:49:07 AM »
Hi,

 Can you explain what you are doing to achieve this?

bye,

 Jean

BigDaz

  • Playmaker Newbie
  • *
  • Posts: 11
Re: Transform SetRotation X Axis Bug
« Reply #2 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-


BigDaz

  • Playmaker Newbie
  • *
  • Posts: 11
Re: Transform SetRotation X Axis Bug
« Reply #3 on: October 02, 2013, 02:53:52 PM »
Or is it just me?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Transform SetRotation X Axis Bug
« Reply #4 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

BigDaz

  • Playmaker Newbie
  • *
  • Posts: 11
Re: Transform SetRotation X Axis Bug
« Reply #5 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
« Last Edit: October 06, 2013, 07:33:38 AM by BigDaz »

BigDaz

  • Playmaker Newbie
  • *
  • Posts: 11
Re: Transform SetRotation X Axis Bug
« Reply #6 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.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Transform SetRotation X Axis Bug
« Reply #7 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

BigDaz

  • Playmaker Newbie
  • *
  • Posts: 11
Re: Transform SetRotation X Axis Bug[SOLVED]
« Reply #8 on: October 11, 2013, 03:17:24 PM »
Fixed, thanks a lot. :)