Jump to content

Player Script DevLog


Yue
 Share

Recommended Posts

 

Test to restore skeleton after the ragdoll effect, the idea that the character after activating the effect can stand up again. This test implies that by means of an animation I can restore it to its standing position.

This is not conclusive, as I have to see how I attach the bones to the rigid bodies.
 

 

Mars.jpg.89ab63a64eebc1f5ada0ab82b66a1f8c.jpg

 

 

Link to comment
Share on other sites

image.thumb.png.8318a1ec14f87364b6319ce7b5b75b66.png

		function this:Start()
			
			self.skeletal = CBones:New()
			self.bodies   = CBodies:New()
			

			self:SetPositionBodies()
			--self:SetRotationBodies()
			
			self:GetPositionBodies()
			
			self:StartJoints()
			self:SetRotationBodies()-- Here Solved Problem.
		end 

And this is where for a long time I have suffered with the rag doll effect. Create the joints and then rotate them in relation to the bones, there is only this possibility, if you do it too early, the ragdoll effect does not work correctly.  

Mars.jpg.89ab63a64eebc1f5ada0ab82b66a1f8c.jpg

 

 

Link to comment
Share on other sites

  • 2 weeks later...

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