THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 10/03/2004 at 00:43, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.200
Platform: Windows ;
Language(s) : C.O.F.F.E.E ; XPRESSO ;
---------
I´m trying to match the rotation and postion of a bone. Everything works fine as long as I dont rotate the bone; my snippet:
//I have created the cube object beforehand as an example
var bonePos = stepObject->GetPosition();
var boneScale = stepObject->GetScale();
var boneRot = stepObject->GetRotation(); var cnt_cube->SetData(PRIM_CUBE_LEN, vector(100,100,200));
cube->SetContainer(cnt_cube);
cube->SetRotation(boneRot);
cube->SetPosition(bonePos);
The rotation is almost matched, but there is an off off the position. I have searched the forum, but only came up with a thread of someone with the same problem, like wise him, I have also tried using the Global coodinates of both objects to no avail. I have also tried changing the order of the commands rotating first then positioning
Thanks for any help or tips in advance
(sorry for the the bad code formatting, I couldnt get it right in the provided textfield)
nhytro