Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Velocity profile
#6
(30-11-2017, 06:13 PM)mimarilker Wrote: Hi,

In the ObiEmitterShapeEdge script which I need to use, there is a definition for velocity:

Vector3 vel = Quaternion.AngleAxis(i*radialVelocity,Vector3.right) * Vector3.forward;

I am trying to change it to:

Vector3 vel = velRef * Mathf.Pow (height2 / heightRef, alpha);

height2 = height of a particle from ground (actually all of the particles should change accordingly)
heightRef = reference height
velRef = reference velocity (it gives error, since its a float value, not a Vector)
alpha= roughness coefficient

However, this script don't have a definition for ApplyForcesToActor() method Triste Actually, as I suppose it uses distribution.
Hi,

You don´t need to modify the emitter at all. That only determines the emission speed of the particles, not their behavior once they've been emitted. 

You need to create your own force zone by inheriting the ObiExternalForce class as I pointed out before.  Guiño


cheers,
Reply


Messages In This Thread
Velocity profile - by mimarilker - 30-11-2017, 10:56 AM
RE: Velocity profile - by josemendez - 30-11-2017, 03:48 PM
RE: Velocity profile - by mimarilker - 30-11-2017, 03:58 PM
RE: Velocity profile - by josemendez - 30-11-2017, 05:06 PM
RE: Velocity profile - by mimarilker - 30-11-2017, 06:13 PM
RE: Velocity profile - by josemendez - 01-12-2017, 02:26 PM