playMaker

Author Topic: Set Rotation Not working properly  (Read 2784 times)

tim.holman

  • 1.2 Beta
  • Playmaker Newbie
  • *
  • Posts: 49
Set Rotation Not working properly
« on: September 01, 2011, 10:56:46 AM »
My objective is to lock the x and z rotation of the player so they can only spin in a circle around the y-axis. Here's what I did:

Set Rotation
SpecifyGameObject> "First Person Controller"
XAngle = (variable)
YAngle = None (Blank)
ZAngle = (variable)
Space : World
Every Frame: True

For some reason, this isn't restricting rotation on the x and z axis for the First Person Controller. Am I doing something wrong here? Is there perhaps a better way to achieve this?? Any help would be greatly appreciated!! Thanks!

Damian

  • 1.2 Beta
  • Full Member
  • *
  • Posts: 188
    • Permaximum Betty
Re: Set Rotation Not working properly
« Reply #1 on: September 01, 2011, 12:47:13 PM »
Set a fixed value on the other once to.

tim.holman

  • 1.2 Beta
  • Playmaker Newbie
  • *
  • Posts: 49
Re: Set Rotation Not working properly
« Reply #2 on: September 01, 2011, 12:56:49 PM »
I tried setting the x and z values to 0, but that didn't do anything different. I don't want to set the Y value as that would disallow you from spinning in circles... right?