Jump to content
Sign in to follow this  
ussrlongbow

3DEN Q - how to get vectorDir from mission.sqm?

Recommended Posts

Say we have this entry in mission.sqm

class Item2
{
dataType="Object";
class PositionInfo
{
position[]={14647.092,30.796209,16842.982};
angles[]={0,5.5012684,0};
};
side="Empty";
flags=1;
class Attributes
{
};
id=34;
type="Land_Cargo_Tower_V1_No1_F";
};

I already sorted out that position is written in format [X,Z,Y] (but why?!)

 

angles[]={0,5.5012684,0}; makes me think of direction data, how can it be used to get same direction with setVectorDir, as i see in 3d editor?

 

UPD: is it just angle in radians?

 

UPD 2: looks like it is really radians.

Share this post


Link to post
Share on other sites

Yes, looks like X Z Y axis rotation in radians, or pitch, yaw, roll.

Share this post


Link to post
Share on other sites

Yes, looks like X Z Y axis rotation in radians, or pitch, yaw, roll.

thanks, ceeeb, that makes sense

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×