Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Change particle mass via script
#3
Thanks again Jose

Setting the velocity before the mass did solve my problem, but running in Editor Mode, when I click Edit Particles to check the particle's properties, the mass changes back to default value. Not that this is crucial, once executing the Standalone of my project, the particles remains fixed.

(21-04-2018, 07:57 AM)josemendez Wrote: This does fix the particle for me. However, if the particle had non-zero velocity prior to being fixed, it will keep that velocity (but collisions or constraints will not be able to change it). So you should usually pair this with a call to Oni.SetParticleVelocities() to set its velocity to zero, and optionally also set its position.

cheers,
Reply


Messages In This Thread
Change particle mass via script - by leonrdo - 20-04-2018, 08:15 PM
RE: Change particle mass via script - by leonrdo - 24-04-2018, 07:33 PM