Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get Renderable Particle Count
#4
(29-08-2017, 11:55 AM)PhantomBadger Wrote: Awesome! Thank you Sonrisa

You're welcome! oh, and just in case: actor.GetParticlePosition(index) gives you the renderable position of any particle in the actor. The index you pass goes from 0 to the amount of particles in the actor (which is particleIndices.Lenght).

This is a very convenient way to get the actual, rendered position of any particle without resorting to the lower-level stuff in the Oni class. Works both in editor and in play mode.
Reply


Messages In This Thread
Get Renderable Particle Count - by PhantomBadger - 29-08-2017, 11:33 AM
RE: Get Renderable Particle Count - by josemendez - 29-08-2017, 11:48 AM
RE: Get Renderable Particle Count - by josemendez - 29-08-2017, 12:09 PM