Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: NvdS on May 19, 2015, 02:01:49 PM

Title: Set Rotation Get Rotation
Post by: NvdS on May 19, 2015, 02:01:49 PM
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!
Title: Re: Set Rotation Get Rotation
Post by: mdotstrange on May 19, 2015, 06:02:20 PM
To store the rotation you would use "Get Rotation" and you would use a quaternion variable type