playMaker

Author Topic: How do I set just y axis from vecter 3?  (Read 1512 times)

wheretheidivides

  • Sr. Member
  • ****
  • Posts: 496
How do I set just y axis from vecter 3?
« 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).

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: How do I set just y axis from vecter 3?
« Reply #1 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.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D