shenmue
10-22-2007, 07:53 PM
Hi
I have spend 5 hours trying to fix this simple problem,but something is missing.
I just created 3 locator.One of them is aim constrained to the other,having an up object as an up vector.
Here is the simple code:
//create locator
spaceLocator -n "aim";xform -cp;
spaceLocator -n "objectAimed" -p 0 10 0;xform -cp;
spaceLocator -n "upVector" -p 5 0 0;xform -cp;
//create aim constraint to the "objectAimed",making "upVector" as object up vector
select -r objectAimed ;
select -tgl aim ;
aimConstraint -offset 0 0 0 -weight 1 -aimVector 0 1 0 -upVector 1 0 0 -worldUpType "object" -worldUpObject upVector;
I don´t understand why when I move the up vector in Z,the constrained locator doesn´t rotate.
But if I scale the up vector locator and do the same translation,the constrained locator do rotate this time.Could somebody explain to me this hole aim up vector stuff?I am going crazy here.
thanks
I have spend 5 hours trying to fix this simple problem,but something is missing.
I just created 3 locator.One of them is aim constrained to the other,having an up object as an up vector.
Here is the simple code:
//create locator
spaceLocator -n "aim";xform -cp;
spaceLocator -n "objectAimed" -p 0 10 0;xform -cp;
spaceLocator -n "upVector" -p 5 0 0;xform -cp;
//create aim constraint to the "objectAimed",making "upVector" as object up vector
select -r objectAimed ;
select -tgl aim ;
aimConstraint -offset 0 0 0 -weight 1 -aimVector 0 1 0 -upVector 1 0 0 -worldUpType "object" -worldUpObject upVector;
I don´t understand why when I move the up vector in Z,the constrained locator doesn´t rotate.
But if I scale the up vector locator and do the same translation,the constrained locator do rotate this time.Could somebody explain to me this hole aim up vector stuff?I am going crazy here.
thanks
