Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: wheretheidivides on December 09, 2014, 12:58:42 PM

Title: How do I set just y axis from vecter 3?
Post by: wheretheidivides on December 09, 2014, 12:58:42 PM
OK so I have 2 items rotating in opposite directions on Y axis.  The user can select different items to replace them.  There is text above the items but when I get back to item 1, I want the item to sync up with the text.

So, I have the variable stored as a vector 3.  I just want the Y angle.  I tried a set rotation, but it does all 3 (x,y,z).  SO how do I just get the Y and use it to set the Y? 

and also, it needs to be the opposite (positive 120 degrees becomes negavive 120 and neg 100 would become pos 100).
Title: Re: How do I set just y axis from vecter 3?
Post by: Lane on December 09, 2014, 01:10:08 PM
So, I have the variable stored as a vector 3.  I just want the Y angle.  I tried a set rotation, but it does all 3 (x,y,z).  SO how do I just get the Y and use it to set the Y?

Using Set Rotation you can leave all the fields as "None" and set the Y to your value. If they're None then the action doesn't change them.