Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Applying custom forces - AddWind or AddParticleExternalForces?
#5
(16-04-2018, 08:09 PM)jabza Wrote: Just to add to this, does Oni.AddParticleExternalForce apply the force provided evenly accross all particles? 

IE: If my custom force magnitude is 10, and I have 2 particles, does each particle recieve a force of magnitude 5, or 10?

And finally, am I expected to provide my force * Time.fixedDeltaTime, or is the timestep accounted for in Oni?

Thanks again!

Hi there,

Forces always are applied over a given time (usually fixedDeltaTime). You don't need to multiply them by the delta yourself. If they were applied instantly they would not be called forces, but impulses Sonrisa.

The force you pass is applied to all particles, it does not get divided by the amount of particles. In your example, both particles would receive a force of 10.
Reply


Messages In This Thread
RE: Applying custom forces - AddWind or AddParticleExternalForces? - by josemendez - 16-04-2018, 10:36 PM