Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×

bi_mg

Member
  • Content Count

    27
  • Joined

  • Last visited

  • Medals

Everything posted by bi_mg

  1. Hi @johnnyboy, I mentioned BIS_fnc_setPitchBank in the beginning of my thread (I've fottogen to mention the BIS_fnc_setObjectRotation, sry). You definitely got what I am searching for and the function you mentioned is the right goal - but old. Then function BIS_fnc_setPitchBank itself was written with the outcome of Arma 2 1.0 if I informed correctly. BIS_fnc_setPitchBank must be preprocessed, compiled and called (Arma 3 had already integrated in the core). these to function worked with euler angles more or less. I'm quiet sure that there is a better modern way for function in form of commands like setDir, getDir. You know what I mean :).
  2. 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.
×