THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 23/06/2004 at 04:31, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.206
Platform:
Language(s) : C++ ;
---------
Hi,
I am trying to force a bones direction to point in the X axis in world space.
To do this I use this simple code
Vector vDir = Vector(Rad(270.0),0,0);
oBone->SetRot(VectorToHPB(vDir));
Running that code on a bone, faces the bone along the X axis.
But when the bone is a child of another bone, it will no longer point along the X axis because SetRot() is working locally.
For the life of me I can work out how to make that bone point in the X axis in world space no matter what the bone is a child of.
help!