Hello, I need to correct a problem in a script that I need
I need an object stuck in the face of a normal
my code in ScriptController in transform for de face 76 in sphere02
dependsOn $Sphere02
(
Pos= polyop.getFaceCenter $sphere02 76
Norm = (polyop.getFaceNormal $sphere02 76)
worldUpVector = [0,0,1]
rightVector = normalize(cross worldUpVector Norm)
upVector = normalize(cross rightVector Norm)
matrix3 rightVector upVector Norm Pos
)
In principle it works, but there are problems in the rotation of the object aligned....obviously not well
any suggestions?
(attach my example 3ds max 2009)
thank you!!!
(sorry for my bad inglish)
By Leandro Salerno · 2008-10-13