Quantcast
Channel: Programming (In-game)
Viewing all articles
Browse latest Browse all 645

Getting IMyThrust's orientation

$
0
0
Hello, I am currently working on a script that handles everything around hydrogen & hydrogen thrusters.
I came to a point where I need to get all thrusters in specific direction.

I tried to do it using IMyThrust's GridThrustDirection and comparing to to set of 3I vectors.
Strangely enough, GridThrustDirection returns nothing but 0 when nobody sits in the cockpit.

Is this really the intended behaviour of this getter, and if so, what can I use to get thruster's direction relative to cockpit...

Getting IMyThrust's orientation

Viewing all articles
Browse latest Browse all 645