cockpit camera orientation probs

Blitz3D Forums/Blitz3D Programming/cockpit camera orientation probs

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Vorderman,

Align to vector uses quarternions so no gimbal lock. Something like this should work ..

;align X-axis 
tformvector 1,0,0, CARmesh, 0
aligntovector CAMERA, tformedx(), tformedy(), tformedz(), 1, .25
;align z axis
tformvector 0,0,1, CARmesh, 0
aligntovector CAMERA, tformedx(), tformedy(), tformedz(), 3, .25


You may only need Pitch and Roll axes.

[EDIT] So you've found some motivation at long last!!! Don't I know this feeling.

Stevie