Sign in to follow this  

Bullet Physics and Ogre Animations?

This topic is 2578 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

This is more of a general question than anything concerning the two specific libraries, however I am extremely confused on this topic. I began setting up a Kinematic Character Controller in Bullet for my game yesterday, and I am using Ogre for my Rendering Engine.

My character mesh (in Ogre) is animated, but I am now confused on how exactly I can get an accurate physics representation of it into Bullet. For a simple game, I understand you can just use a primitive shape to encompass the general size of the character, but for something like an FPS game, having an accurate collision mesh is necessary.

So my confusion is how exactly would I use a collision mesh with an animated mesh? Just taking a shot in the dark, I was thinking perhaps you give the collision mesh bones and then merge them with the relative bones on the visible mesh to make sure it is accurate.

Anyways, I am just extremely confused as to how a physics collision model is kept accurate during gameplay when the character is animating.

Share this post


Link to post
Share on other sites
You should be able to take the bones from the animation and tie them to collision primitives. Just setup a bone-primitive mapping and use your animation skeleton to drive the positions of the collision primitives. When you are done animating the object, look at the RagDoll demo in the bullet demos for how you could then constrain all those primitives together into a phsyics object that could then drive the animation bones.

Share this post


Link to post
Share on other sites
I've been trying to do something similar with Ogre's 'Jaiqa' animated mesh resource, just to get my feet wet so to speak.
Does anyone have a (small) example of how to achieve this (preferably under Nikki's btOgre wrapper) ?
It appears that Nikki has provided suitable code for this purpose, however I really have no idea how to put it together.. please help!

Share this post


Link to post
Share on other sites

This topic is 2578 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this