Which way are gun turrets meant to face?

For test results, bug reports, announcements of new builds etc.

Moderators: winston, another_commander, Getafix

Post Reply
User avatar
Flying_Circus
Dangerous
Dangerous
Posts: 118
Joined: Thu Dec 09, 2004 10:04 pm
Location: Hexham, UK

Which way are gun turrets meant to face?

Post by Flying_Circus »

If it's plus-z then I'm fairly certain gun turrets have turned themselves around at some stage.

This is on the nightly Linux... A gun turret that has it's gun pointing out on the positive-z axis is definitely facing backwards when I give it a quaternion of 1 0 0 0... Is this correct?
And so I gave myself to God. There was a pregnant pause before He said "OK"
Image
User avatar
aegidian
Master and Commander
Master and Commander
Posts: 1161
Joined: Thu May 20, 2004 10:46 pm
Location: London UK
Contact:

Post by aegidian »

AFAIR if the identity quaternion is used (1 0 0 0) then yes, the turret should point into +Z.
"The planet Rear is scourged by well-intentioned OXZs."

Oolite models and gear? click here!
User avatar
Flying_Circus
Dangerous
Dangerous
Posts: 118
Joined: Thu Dec 09, 2004 10:04 pm
Location: Hexham, UK

Post by Flying_Circus »

Well, after applying the identity quat., it's definitely facing -Z, so maybe there's a problem with this on the present Linux build :S

EDIT: Further experimentation indicates that it may be a wider quaternion-related problem. I'm seeing behaviour for quat-placed subentities reversed on their axes, from what I was expecting, on all models. Could this cause problems for external view, if it is to use theinternal quat code of the game?
And so I gave myself to God. There was a pregnant pause before He said "OK"
Image
Post Reply