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