Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: chautran on August 13, 2015, 12:11:46 PM
-
Hello guys,
I need to get a vector3 direction from one game object to another but I don't know how. In scripting I can subtract the target position the original position, but playmaker doesn't have anything like that.
Can anyone help? I appreciate it!
-
Hi,
use Vector3Operator action, it has a "substract" operator. Get the position of your target and source as VEctor3, and then you'll have your direction.
If you want a direction as a Rotation/Quaternion, use QuaternionLookAt action from the Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181).
Bye,
Jean
-
Thanks! I get it now.