Jump to content

Recommended Posts

Posted

Anyone have any idea why my ragdolls disappear when viewed at certain angles? Sometimes they can't be seen at all.

post-12583-0-15814700-1440358563.gif

---

Scott

 

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

Posted

You have to update the AABB each loop.

      --Update the model local and global AABBs so the renderer keeps proper track of it
      model:UpdateAABB(Entity.LocalAABB)
      model:UpdateAABB(Entity.GlobalAABB)

HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB

Posted

Thanks Shadmar but there's no change after updating every loop.

---

Scott

 

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

Posted

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

Posted

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

Posted

Found my project, just move the skin with the torso like each loop:

 

self.skin:SetPosition(self.torso:GetPosition()) --keep AABB inplace.

  • Like 1
  • Upvote 1

HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB

Posted

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

Posted

No, but it would be nice to have built-in support.

---

Scott

 

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

Posted

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.

  • 1 year later...
Posted

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

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