hey,
i have this tree mesh and i cant seem to find a tutorial on how to set a rigid body to the approximate shape of a custom mesh
how do i set a rigid body to my mesh with bullet
Re: how do i set a rigid body to my mesh with bullet
The way we did that in game once was that we wrote a small editor for it. Default used bounding-box and artists could modify the rigid bodies to approximate the models better.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: how do i set a rigid body to my mesh with bullet
Hi,
For approximation of character you should use btGImpactShape where you would pass triangles through btTriangleMesh. Please see the implementation in IrrBullet (you'll find it in gimpactmeshshape.h/trianglemeshshape.h).
For approximation of character you should use btGImpactShape where you would pass triangles through btTriangleMesh. Please see the implementation in IrrBullet (you'll find it in gimpactmeshshape.h/trianglemeshshape.h).
IRC: #irrlicht on irc.freenode.net
Github: https://github.com/danyalzia
Homepage: http://danyalzia.com
Github: https://github.com/danyalzia
Homepage: http://danyalzia.com