Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Tue Jul 24, 2012 1:10 pm 
Offline

Joined: Tue May 08, 2012 10:16 am
Posts: 1
Hello,

there are some incorrect assert expressions (wrong boolean logic) inside some Demos.

E.G. FractureDemo.cpp(275):
btAssert((!m_shootBoxShape || m_shootBoxShape->getShapeType() != INVALID_SHAPE_PROXYTYPE));
should be
btAssert((m_shootBoxShape && m_shootBoxShape->getShapeType() != INVALID_SHAPE_PROXYTYPE));

There is a similar expression in btRigidBody* DemoApplication::localCreateRigidBody:
btAssert((!shape || shape->getShapeType() != INVALID_SHAPE_PROXYTYPE));
should be
btAssert((shape && shape->getShapeType() != INVALID_SHAPE_PROXYTYPE));

...and other places.

You can show the error by setting the pointer to 0 (e.g. shape=0). The assertion won't come up.

BTW: What is the best way to report errors? I start using Bullet for a project.

Beside this error: I really appreciate Bullet Physics! Thanks to Erwin Coumans and all other contributers!

rolandSt


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group