playMaker

Author Topic: Set Rotation Get Rotation  (Read 995 times)

NvdS

  • Playmaker Newbie
  • *
  • Posts: 16
    • View Profile
Set Rotation Get Rotation
« on: May 19, 2015, 11:01:49 AM »
Hi,

Hopefully I can get some help on this one. I want to place a plane right in front of my first person. So I want to set both the position and the rotation of the plane to the position and rotation of the first person.

I've managed to get the position of my first person via a global variable (vector3) which I select in the 'vector' pulldown. I can set the position of the plane via this variable. So far it works...

But since I want to move a plane right in front of the first person I also want to set the rotation. Unfortunately I can't manage to fix this. Can I store the rotation in a variable as well (get position)? If so..which one?

Any help would really be appreciated!

mdotstrange

  • Hero Member
  • *****
  • Posts: 551
    • View Profile
    • Can't code? Who cares! Make games anyway!
Re: Set Rotation Get Rotation
« Reply #1 on: May 19, 2015, 03:02:20 PM »
To store the rotation you would use "Get Rotation" and you would use a quaternion variable type
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!