playMaker

Author Topic: Tell the direction of an object  (Read 1935 times)

9bitjared

  • Playmaker Newbie
  • *
  • Posts: 5
Tell the direction of an object
« on: April 07, 2015, 08:47:47 PM »
In a game I am trying to tell the direction (just left or right will work) of an object from another object

Here is an example



if that doesn't work
http://imgur.com/HjE2w8F

thanks in advance

MU65

  • Playmaker Newbie
  • *
  • Posts: 7
Re: Tell the direction of an object
« Reply #1 on: April 08, 2015, 02:50:32 AM »
Hi,

in 2D space and in world coordinate I would find the position of the game objects and compare them (using Get position and a Float comparison action)... in 3D space I would do something similare but maybe using a comparison of the 3 axes unless hight doesn't matter.

Hope that could help

Have a nice day

9bitjared

  • Playmaker Newbie
  • *
  • Posts: 5
Re: Tell the direction of an object
« Reply #2 on: April 08, 2015, 06:04:00 PM »
Hi,

in 2D space and in world coordinate I would find the position of the game objects and compare them (using Get position and a Float comparison action)... in 3D space I would do something similare but maybe using a comparison of the 3 axes unless hight doesn't matter.

Hope that could help

Have a nice day

Think I already tried that, but once more can't hurt