Jump to content
Sign in to follow this  
UNN

setVector Function Request

Recommended Posts

Anyone able to write a function(s) that would ensure an object attached to an aircraft, will always point north with 0 pitch and bank?

Afraid my maths isn't up to it :(

Share this post


Link to post
Share on other sites

Sorry, looks like I posted this question in the ARMA - MISSION EDITING & SCRIPTING thread, instead of ARMA2 - MISSION EDITING & SCRIPTING.

Please delete if required.

Share this post


Link to post
Share on other sites

vectorDir Hmm?

returning value [x, z, y]

if [0, 1, 0] - objects points to the N

it uses normalized vector (vector with magnitude = 1, easily convertable to angles between object's vectors and axises) to determine direction in Oxz plane

     N (z)
     ^
     |
     |
W - - + - - > E (x)
     | O
     |
     S
Ox - W->E axis
Oz - S->N axis

Edited by Prodavec

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  

×