01-12-2017, 02:26 PM
(This post was last modified: 01-12-2017, 02:26 PM by josemendez.)
(30-11-2017, 06:13 PM)mimarilker Wrote: Hi,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 Actually, as I suppose it uses distribution.
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.
cheers,