Hi All
I've been working on getting osgBullet compiled for IOS, all seems to have
gone well and i got the basic demo with the glider running. I did run into
one compiler error from where I had compiled osg to use floats. I had to
change asBtTransform to the following
btTransform osgbBullet::asBtTransform( const osg::Matrix& m )
{
const osg::Matrix::value_type* oPtr = m.ptr();
btScalar bPtr[ 16 ];
int idx;
for (idx=0; idx<16; idx++)
bPtr[ idx ] = oPtr[ idx ];
btTransform t;
t.setFromOpenGLMatrix( bPtr );
return t;
}
The line
const osg::Matrix::value_type* oPtr = m.ptr();
was
const osg::Matrixd::value_type* oPtr = m.ptr();
Other then that all went well. Lets see how it performs.
Cheers
Tom
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org