Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: tim.holman on September 01, 2011, 10:56:46 AM

Title: Set Rotation Not working properly
Post by: tim.holman 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!
Title: Re: Set Rotation Not working properly
Post by: Damian on September 01, 2011, 12:47:13 PM
Set a fixed value on the other once to.
Title: Re: Set Rotation Not working properly
Post by: tim.holman 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?