Jump to content

Physics with bone animation


Hgawmphdmph
 Share

Recommended Posts

Hi,

I've modelled a simple crate in Blender and imported it to Leadwerks. This lid is a simple mesh with a single bone to swing it open. The problem I'm having is that the physics doesn't seem to move with the mesh, as in the attached image. I'm using an animated model shader but the physics system seems to stay put. That means that when the lid opens, I can't access the inside because attemps to "pick" things inside hit the lid physics which are still in place.
(Presumably, if I do the same thing with a door, I'm not going to be able to walk through it?)

Am I doing something wrong?

Thanks in advance for any help.
Colin

cratelid.png.b47c55b70a3caca830a421a666eaf9a0.png

Link to comment
Share on other sites

You're doing nothing wrong. It's just that physics in Leadwerks don't work like that.

Anything you wish to move or have a physical reaction needs to use the Joint class in someway. 

Cyclone - Ultra Game System - Component PreprocessorTex2TGA - Darkness Awaits Template (Leadwerks)

If you like my work, consider supporting me on Patreon!

Link to comment
Share on other sites

Hi reepblue,

Ok thanks. I'll try adding a hinge joint in place of the bone.

But then that makes me think - what would happen then with a character or NPC? They are animated with bones and if their physics mesh doesn't move with them then surely collisions and picks with them would be off?

Cheers,

Colin

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...