Re: [osg-users] moving object along rotated vector

2010-07-01 Thread Roberts, Gareth (UK)
No, it will be (1,0,0) if the X axis is forwards, (0,1,0) if the Y axis is forwards. -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Sanat Talmaki Sent: 01 July 2010 13:46 To: osg-users@lists.openscenegra

Re: [osg-users] moving object along rotated vector

2010-07-01 Thread Roberts, Gareth (UK)
I have bought some models of motor vehicles and found that some have the X axis as "forwards" and some the Y axis, which can cause confusion when you are tryiong to orient and move a model. If you load up a model on its own in osgviewer you will see the rear of the model if the Y axis is forwards,

Re: [osg-users] Rotating a vector by a quat

2010-06-30 Thread Roberts, Gareth (UK)
osg::Vec3 Vector, RotatedVector; Osg::Quat Q; RotatedVector = Q*Vector; -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of John Galt Sent: 29 June 2010 16:01 To: osg-users@lists.openscenegraph.org Subject: