SimApi Convertor angularVec2zsVec

From SIMboxWiki
Jump to navigation Jump to search

Icon attributes.pngstatic void SimApi::Convertor::angularVec2zsVec(const AngularVec &angVec, zsVec3 &zsVec)


    Converts angular vector to graphic engine vector.


    angVec - In parameter, angular vector (of type AngularVec)
    zsVec - Out parameter, the graphic engine vector (of type zsVec3)


    Type: void   Description: The graphic engine vector is returned in the zsVec parameter


The 3D engine and the simulation engine represent orientation vectors differently. When using 3D engine API, you must convert from the AngularVec type that is used by simulation engine to zsVec3 type that is used by 3D engine, and then convert the results in conversely. See "SIMBox Coordinates Systems" for more information.

    Code Sample

    See Also




    Related Links

     SIMbox Coordinates Systems Overview