favreau / bullet

Automatically exported from code.google.com/p/bullet
0 stars 0 forks source link

Missing addRigidBody overload from btDynamicsWorld #462

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

btDynamicsWorld has only one version of :
    virtual void    addRigidBody(btRigidBody* body) = 0;

Whereas btDiscreteDynamicsWorld and btDiscreteDynamicsWorld have two :
    virtual void    addRigidBody(btRigidBody* body);
    virtual void    addRigidBody(btRigidBody* body, short group, short mask);

Maybe the second one could be added to btDynamicsWorld ?
It is even already declared virtual in btDiscreteDynamicsWorld (and 
btDiscreteDynamicsWorld).

Moreover the wiki entry about filtering masks, see 
http://bulletphysics.org/mediawiki-1.5.8/index.php/Collision_Filtering#Filtering
_collisions_using_masks , seems to believe this overload already exists in 
btDynamicsWorld.

Thanks,
MAT.

Original issue reported on code.google.com by m.champ...@free.fr on 14 Dec 2010 at 9:18

GoogleCodeExporter commented 9 years ago

The pure virtual method has been added in trunk:
http://code.google.com/p/bullet/source/detail?r=2247

Thanks for the feedback!
Erwin

Original comment by erwin.coumans on 15 Dec 2010 at 7:17