500 is fine with me!
We should probably also add a statement that hints at low values of power drawn / efficacy if the values are within the range of 0..1. (Do we need a feedback line?)
Concerning the Rotation Matrix:
I've made a small proof of concept, even though the result has a different orientation than I wanted it to be...
Code: Select all
$x = `getAttr locator1.rx`;
$y = `getAttr locator1.ry`;
$z = `getAttr locator1.rz`;
float $xCos = cos (deg_to_rad($x));
float $xCo_ = -1 * `cos (deg_to_rad($x))`;
float $xSin = `sin (deg_to_rad($x))`;
float $xSi_ = -1 * `sin (deg_to_rad($x))`;
float $yCos = `cos (deg_to_rad($y))`;
float $yCo_ = -1 * `cos (deg_to_rad($y))`;
float $ySin = `sin (deg_to_rad($y))`;
float $ySi_ = -1 * `sin (deg_to_rad($y))`;
float $zCos = `cos (deg_to_rad($y))`;
float $zCo_ = -1 * `cos (deg_to_rad($y))`;
float $zSin = `sin (deg_to_rad($y))`;
float $zSi_ = -1 * `sin (deg_to_rad($y))`;
matrix $mx[3][3] = << 1 , 0 , 0 ;
0 , $xCos, $xSi_;
0 , $xSin, $xCos>>;
matrix $my[3][3] = << $yCos , 0 , $ySin ;
0 , 1, 0 ;
$yCo_ , 0, $yCos>>;
matrix $mz[3][3] = << $zCos , $zSi_ , 0 ;
$zSin , $zCos, 0;
0 , 0, 1>>;
matrix $mAll[3][3] = $mx * $my * $mz;
print "\nrotation Matrix:";
print $mAll;
print "\n";
+
http://en.wikipedia.org/wiki/Rotation_r ... ematics%29
That is still a first shot, and I think the conventions may differ, but the syntax works.
cheers,
b