Cage opened this issue on Dec 20, 2006 · 1232 posts
Spanki posted Sun, 30 March 2008 at 1:50 AM
hmmm....
def normToForce(mesh,intensity):<br></br>
"""Convert normals to force
information"""<br></br>
if intensity !=
0.0: #
shouldn't this be...<br></br>
for vi in
range(len(mesh.particles)): # swapped with this
line?<br></br>
norm = mesh.vnorms[vi]<br></br>
mesh.particles[vi].f = norm.Scale(1.0/intensity)
#?<br></br>
else:<br></br>
mesh.particles[vi].f = Vector()<br></br>
...and...
def normToGravity(mesh,intensity):<br></br>
""""""<br></br>
if intensity !=
0.0: # shouldn't
this be...<br></br>
for vi in range(len(mesh.particles)): # swapped
with this line?<br></br>
norm = mesh.vnorms[vi]<br></br>
mesh.particles[vi].gravity =
norm.Scale(1.0/intensity)<br></br>
else:<br></br>
mesh.particles[vi].gravity = Vector()<br></br>
mesh.particles[vi].oneOverM = 0.0<br></br><br></br>
...see the # comments, above.
Cinema4D Plugins (Home of Riptide, Riptide Pro, Undertow, Morph Mill, KyamaSlide and I/Ogre plugins) Poser products Freelance Modelling, Poser Rigging, UV-mapping work for hire.