Logo Search packages:      
Sourcecode: blender version File versions  Download package

void btTransform::setFromOpenGLMatrix ( const btScalar *  m  )  [inline]

Set from an array.

Parameters:
m A pointer to a 15 element array (12 rotation(row major padded on the right by 1), and 3 translation

Definition at line 121 of file btTransform.h.

References m_basis, m_origin, and btMatrix3x3::setFromOpenGLSubMatrix().

      {
            m_basis.setFromOpenGLSubMatrix(m);
            m_origin.setValue(m[12],m[13],m[14]);
      }


Generated by  Doxygen 1.6.0   Back to index