Jump to content

Ragdolls disappearing


Jazz
 Share

Recommended Posts

in LE2, I had to also make the root physics body (the model in LE2), follow the ragdoll position/rotation as well or I would have that problem you are showing. In LE3, the hierarchy of mesh and physics body is swapped so I do not know if that would apply here. But I would be curious to where the entity and physics' aabb boxes end up. You should be able to visualize those by using the 'camera:SetDebugEntityBoxesMode()' and 'camera:SetDebugPhysicsMode()' and perhaps it will give an idea of what the problem could be if either of those is not following the ragdoll.

Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590

LE / 3DWS / BMX / Hexagon

macklebee's channel

Link to comment
Share on other sites

Thanks for those commands. After the model's in ragdoll mode the collision hull keeps going to the next waypoint lol. With BoxesMode it's hard to tell as they all move around with the camera. Disabling culling doesn't help. I'll investigate later when I have some more time.

---

Scott

 

Using Windows 7 Ultimate 64 bit/Core I7-2700K @ 4312mhz/24G RAM/Nvidia GTX 1060

Link to comment
Share on other sites

I'll try that after work. Interesting what happens now though. The hull and AABB just get knocked away with the bullet impact.

 

edit: Hmm if I just set health to 0 they still fly away.

 

edit2: Thanks Shadmar! That did it! biggrin.png

post-12583-0-90033700-1440438736.gif

  • Upvote 2

---

Scott

 

Using Windows 7 Ultimate 64 bit/Core I7-2700K @ 4312mhz/24G RAM/Nvidia GTX 1060

Link to comment
Share on other sites

I'll try that after work. Interesting what happens now though. The hull and AABB just get knocked away with the bullet impact.

 

edit: Hmm if I just set health to 0 they still fly away.

 

edit2: Thanks Shadmar! That did it! biggrin.png

You knocked the soul right out of him!

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

  • 1 year later...

I don't get it sad.png My character skin still disappears.

Is that "self.torso" a bone ?

 

in start: self.child = self.entity:FindChild("Bone")

 

Bone = top bone in the heirarchy

 

In your Update loop:

 

self.entity:SetPosition(self.child:GetPosition(true))

  • Like 1
  • Upvote 1

---

Scott

 

Using Windows 7 Ultimate 64 bit/Core I7-2700K @ 4312mhz/24G RAM/Nvidia GTX 1060

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...