how do i set a rigid body to my mesh with bullet

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
James123
Posts: 1
Joined: Sat Mar 29, 2014 11:12 pm

how do i set a rigid body to my mesh with bullet

Post by James123 »

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
CuteAlien
Admin
Posts: 9934
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: how do i set a rigid body to my mesh with bullet

Post by CuteAlien »

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
superpws
Posts: 18
Joined: Mon Mar 31, 2014 6:47 am
Contact:

Re: how do i set a rigid body to my mesh with bullet

Post by superpws »

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).
IRC: #irrlicht on irc.freenode.net
Github: https://github.com/danyalzia
Homepage: http://danyalzia.com
Post Reply