Jump to content

Ragdoll effect.


Yue
 Share

Recommended Posts

There is some tutorial on how to make the rag doll effect. 

I am doing some tests, but I would like to know if anyone already has an idea in the community of the steps to follow.

The idea is that the effect is activated when the character dies, and a disturbing question is : Is it possible to reverse the effect, like when in gta V you are hit by a car and then the character is reincorporated.
image.thumb.png.760314a671258794e75083b537812883.png
 

 

 

Link to comment
Share on other sites

		-- Torax.
		self.torax:SetPosition(self.boneTorax:GetPosition(true),false)
		self.torax:SetRotation(self.boneTorax:GetRotation(true),false)
		self.boneTorax:SetParent(self.torax,true)
		self.torax:SetMass(1.0)

		-- Externon.
		self.externon:SetPosition(self.boneExternon:GetPosition(true),false)
		self.externon:SetRotation(self.boneExternon:GetRotation(true),false)
		self.boneExternon:SetParent(self.externon,true)
		self.externon:SetMass(1.0)

		-- Pelvis.
		self.pelvis:SetPosition(self.bonePelvis:GetPosition(true),false)
		self.pelvis:SetRotation(self.bonePelvis:GetRotation(true),false)
		self.bonePelvis:SetParent(self.pelvis,true)
		self.pelvis:SetMass(1.0)

		-- Joints. 
		self.jointPelvis    = Joint:Hinge(self.externon:GetPosition(false).x,self.externon:GetPosition(false).y,self.externon:GetPosition(false).z, 1,0,0, self.pelvis, self.externon )
		self.jointPelvis:DisableLimits()

I have a problem here, I have three bodies that I assign to the bones of the mesh. These have joints, but when I assign them to the mesh they sink into the ground. However if I don't assign them to the mesh, they don't sink, any suggestions?

 

 

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