playMaker

Author Topic: Vector 3 Average  (Read 1723 times)

Huska

  • Playmaker Newbie
  • *
  • Posts: 2
Vector 3 Average
« on: February 20, 2022, 12:10:19 AM »
     I could really use a modification of the Custom action "Vector3 Average" Instead of having to predefine the number of items in the array, I want to be able to set it as an Int variable so I can change it on the fly.  I think I'm explaining that right. 

I would be grateful for any help!

artician

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 318
Re: Vector 3 Average
« Reply #1 on: November 12, 2022, 05:57:29 PM »
This is exactly what I came here looking for.  Any luck?

drown

  • Junior Playmaker
  • **
  • Posts: 58
Re: Vector 3 Average
« Reply #2 on: December 12, 2022, 11:51:58 AM »
If you want to work with arrays in Playmaker in a controlled and usable manner you need to use ArrayMaker. It would allow you to simply average an existing vector3 array, no custom action or setting of an int needed.

https://hutonggames.fogbugz.com/?W715

It is an addon that contains exactly what you need (averages, sums etc.). Imho there is no other way to work with Arrays in PM.

« Last Edit: December 12, 2022, 11:53:48 AM by drown »