SusanDing
13-06-2006 13:40:50
Look at this code
We usually use OgreNewt like this, But I find there is a mistake!
After delete the collsion,
will not return the correct collision,so If anyone need to know the Collision from the body, he will be disappointed.
I know in Newton, we can do like this ,but in OgreNewt, we can't.
And Thanks a lot walaber for your hard working! I like OgreNewt very much! Hope it will be better and better!
OgreNewt::Collision* col = new OgreNewt::CollisionPrimitives::Box( m_World, size );
OgreNewt::Body* bod = new OgreNewt::Body( m_World, col );
delete col;
We usually use OgreNewt like this, But I find there is a mistake!
After delete the collsion,
bod->getCollision()
will not return the correct collision,so If anyone need to know the Collision from the body, he will be disappointed.
I know in Newton, we can do like this ,but in OgreNewt, we can't.
And Thanks a lot walaber for your hard working! I like OgreNewt very much! Hope it will be better and better!