playMaker

Author Topic: Particles Move Towards Actions  (Read 2593 times)

cwmanley

  • Full Member
  • ***
  • Posts: 107
Particles Move Towards Actions
« on: February 23, 2016, 04:44:26 PM »
Particles Move Towards Game Object, Mesh, and Skinned Mesh.

On the Ecosystem or https://snipt.net/cwmanley/ //TODO

With the Mesh and Skinned Mesh Actions you get all the vertices, a simple cube has 24 vertices instead of 8.

I found a solution using Linq.
Is there any problems with using Linq in Playmaker Actions.

Thanks
« Last Edit: February 15, 2017, 02:07:38 PM by cwmanley »

mdotstrange

  • Hero Member
  • *****
  • Posts: 555
    • Can't code? Who cares! Make games anyway!
Re: Particles Move Towards Actions
« Reply #1 on: February 24, 2016, 01:44:05 AM »
Cool action! Thanks  :)
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!

dudebxl

  • Hero Member
  • *****
  • Posts: 602
Re: Particles Move Towards Actions
« Reply #2 on: February 24, 2016, 09:55:53 AM »
Hey thanks for the actions,

I have been told that Linq causes performace issues on mobile devices and should always be avoided...

 ;)

cwmanley

  • Full Member
  • ***
  • Posts: 107
Re: Particles Move Towards Actions
« Reply #3 on: March 03, 2016, 12:36:20 AM »
Thanks,

I have some working solutions I just need to apply them to the actions.

Remove Duplicates.
(Looping through the array and removing the duplicates boosts performance for the Mesh, but the Skinned Mesh becomes slightly more expensive :( .)

Limit particles to Vertex Count.

Is there anything else that would be handy?

 :)

dudebxl

  • Hero Member
  • *****
  • Posts: 602
Re: Particles Move Towards Actions
« Reply #4 on: March 03, 2016, 09:36:40 AM »
maybe (have not seen the code), make sure to use 'for' for the array loops (do not use while, it is slower)  :-\