Hi @sarogahtyp,
firstofall thank u for your rapid response. I apologize for my problem explanation.
I do know setVectorDirAndUp. I just work with it an vectorDir and vectorUp - it a pity that getVectorDirAndUp dosn't exists by now.
I explane my problem with angles.
Exaple with angular degree:
I grab the rotation of anchor Object (90° yaw, 180° roll, 135° pitch). In Model space of the Object is the rotation (0° yaw, 0° roll, 0° pitch) we know. The rotation of around Object is (270° yaw, 90° roll, 0° pitch) for example. When I grab the around object relaing to the anchor object i must know the routation of the anchor object to get the right rotation of the around object. for exampl
// in world space
anchor Object = (90° yaw, 180° roll, 135° pitch);
around Object = (270° yaw, 90° roll, 0° pitch);
// transformet in model space of anchor object
anchor Object = (0° yaw, 0° roll, 0° pitch);
around Object = (270° -90° = 180° yaw, 90° -180° = 270° roll, 0° -135° = 225° pitch);
it's easy when the pitch and roll is 0° angular degree of both objects. Then I can easily take the function:
// orign
_anchorObjectDir = getDir _anchorObject;
_aroundObjectDir = getDir _aroundObject;
// transform
_anchorModelDir = 0;
_aroundModelDir = _aroundObjectDir -_anchorObjectDir;
// apply
_anchorObject setDir _anchorModelDir;
_aroundObject setDir _aroundModelDir;
Nice and easy for yaw rotation. But we have two other angles as I said. I really hope, my Problem with vector rotation, can be understand better.