Jump to content

Recommended Posts

Posted

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

Posted

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

 

Posted

The collision for both player and npc characters is characterized by a cylinder covering the model space.  In my case I assign rigid bodies to the bones when I activate the ragdoll effect. 

 

 

Astrocuco.thumb.png.c76e0fb3de2d6e437e7dca099625e11e.png

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.

×
×
  • Create New...