Playmaker Forum

PlayMaker Updates & Downloads => Share New Actions => Topic started by: cwmanley on February 23, 2016, 04:44:26 PM

Title: Particles Move Towards Actions
Post by: cwmanley 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
Title: Re: Particles Move Towards Actions
Post by: mdotstrange on February 24, 2016, 01:44:05 AM
Cool action! Thanks  :)
Title: Re: Particles Move Towards Actions
Post by: dudebxl 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...

 ;)
Title: Re: Particles Move Towards Actions
Post by: cwmanley 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?

 :)
Title: Re: Particles Move Towards Actions
Post by: dudebxl 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)  :-\