playMaker

Author Topic: [SOLVED] Multiple Vector3 Compare?  (Read 1836 times)

pXd

  • Playmaker Newbie
  • *
  • Posts: 29
[SOLVED] Multiple Vector3 Compare?
« on: May 25, 2016, 12:11:55 AM »
Hi all,

I need to compare two Vector3s to two preset vector3s. I found the Vector3 compare action in the ecosystem but it only allows one set of two vector3s to be compared then sends an action.

Would it be easy enough to expand it to two vector3's?

I would like to compare the two vector3s (every frame) in the same state and send a single True/False event if they're both within tolerance of their presets.

Many thanks,

Cheers

« Last Edit: May 25, 2016, 09:12:52 AM by pXd »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Multiple Vector3 Compare?
« Reply #1 on: May 25, 2016, 04:36:52 AM »
Hi,

I see, it was missing the ability to save the comparison in a boolean. Please update the action from the Ecosystem, I added the option.

so, now don't use events, simply save the comparison in two boolean values and then use
 I would use two actions and then use "BoolAllTrue" to find out if both sets of vectors are true.

 Let me know how it goes.

Bye,

 Jean

pXd

  • Playmaker Newbie
  • *
  • Posts: 29
Re: Multiple Vector3 Compare?
« Reply #2 on: May 25, 2016, 09:12:17 AM »
Hi,

I see, it was missing the ability to save the comparison in a boolean. Please update the action from the Ecosystem, I added the option.

so, now don't use events, simply save the comparison in two boolean values and then use
 I would use two actions and then use "BoolAllTrue" to find out if both sets of vectors are true.

 Let me know how it goes.

Bye,

 Jean


Thanks Jean, you are a champion.
All good and working now.  ;)


Cheers