Coordinates system in .mis file

Discussion in 'Utilities and programming' started by César V., Sep 13, 2016.

  1. César V.

    César V.
    Expand Collapse

    Joined:
    Sep 4, 2016
    Messages:
    22
    Hello,

    I am making an exporter for Cinema 4D to automatically export multiple DAE objets and add them to the .mis file, to make a new level from static objects, but I am having trouble with the rotations.

    I see that the coordinates are, for example :

    position = "17.9594 -19.9791 8.28382";
    rotation = "0.436844 0.185447 -0.880214 51.4948";

    I don't recognize quaternion nor Euler, or maybe I am wrong, do you know what is this rotation format ? Or how I can I extract it from a matrix, or convert it from quaternion or from euler ?

    Do you also know if the position depends of the rotation ? Because when I rotate an object in the editor, it changes the position, I don't know if it's normal.

    Thanks,
     
  2. mumboking

    mumboking
    Expand Collapse

    Joined:
    Jun 11, 2015
    Messages:
    1,401
  3. tdev

    tdev
    Expand Collapse
    Developer
    BeamNG Team

    Joined:
    Aug 3, 2012
    Messages:
    3,031
    Cool project :)

    position is a 3D Vector and x, y, z
    rotation is a Quaternion and x, y, z, w
     
  4. César V.

    César V.
    Expand Collapse

    Joined:
    Sep 4, 2016
    Messages:
    22
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice