Notifications
Clear all

[Closed] Particle Orientation and Vertex Normal

I wrote a script which creates particle to each vertex (pflow), but how could I make their rotation to respect vertex normals?

I thought I could use particleOrientation here but it prolly just changes local coordinates of particles. So I should use paritcleTM but I dont know how to extract that information from vertex. So how could I do something like pCont.particleTM = vertex.transform?

1 Reply

Okey, I got my script working.

Basicly I used script from here http://forums.cgsociety.org/showthread.php?t=263981 to get vertex normal from epoly and then used matrixFromNormal <point3> to turn it into transform matrix which I set to pCont.particleTM and after that set the position right.