playMaker

Author Topic: Is there a "Get Direction" action in playMaker[SOLVED]  (Read 3540 times)

spiralKing

  • Junior Playmaker
  • **
  • Posts: 50
Is there a "Get Direction" action in playMaker[SOLVED]
« on: March 26, 2014, 12:06:33 PM »
I want to get the direction an objects x vector is pointing to in screen space as it rotates around the z axis
« Last Edit: April 08, 2014, 12:02:53 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Is there a "Get Direction" action in playMaker
« Reply #1 on: April 02, 2014, 07:51:11 AM »
hi,

if you want the angle, you can use the set of vector 2 and trigo actions:

https://hutonggames.fogbugz.com/default.asp?W547

If you want the quaternion, use the "transform direction" and mention "x", that will give you the x directions of that transform in world space, which you can then express in screenspace as you see fit.

 What are you trying to achieve?



bye,

 Jean

spiralKing

  • Junior Playmaker
  • **
  • Posts: 50
Re: Is there a "Get Direction" action in playMaker
« Reply #2 on: April 07, 2014, 07:26:50 PM »
As I rotated an object, I needed to know the direction its x was pointing to

the "transform direction" action got me that direction

I'd been trying to do this for a while now

Thanks ;D