NoIE Posted December 9, 2014 Share Posted December 9, 2014 There are many cylinders, their names are ropeRoot, rope2, rope3 ... Each cylinder have a children - center.code JointBall.lua for ropeRoot, rope2, rope3 ... :Script.parentObj = nil--entity function Script:Start() local center = self.entity:FindChild("center") if center~= nil then local pos = center:GetPosition(true) self.jointBall = Joint:Ball(pos.x, pos.y,pos.z,self.entity,self.parentObj) end end code Mass.lua for Sphere 1 : Script.parentObj = nil--entity function Script:Start() local center = self.entity:FindChild("center") if center~= nil then local pos = center:GetPosition(true) self.jointBall = Joint:Ball(pos.x, pos.y,pos.z,self.entity,self.parentObj) end self.timer = Time:GetCurrent() + 8000 end function Script:Draw() if self.timer < Time:GetCurrent() then self.entity:SetMass(30) end end After 8 seconds, the sphere's weight is set to 30.edit: Can I use physics sub-stepping ? Quote Please forgive my poor English. Link to comment Share on other sites More sharing options...
Thirsty Panther Posted December 9, 2014 Share Posted December 9, 2014 You Groove has tutorial on rope here http://www.leadwerks.com/werkspace/page/tutorials/_/artwork/physics-rope-r113 Hope this helps. Quote Link to comment Share on other sites More sharing options...
NoIE Posted December 9, 2014 Author Share Posted December 9, 2014 I was made in accordance with that tutorial scene. Set sphere mass for 30: Set sphere mass for 15: Set sphere mass for 7: It is like a spring balance. Quote Please forgive my poor English. Link to comment Share on other sites More sharing options...
NoIE Posted May 20, 2015 Author Share Posted May 20, 2015 Can I use physics sub-stepping ? Quote Please forgive my poor English. Link to comment Share on other sites More sharing options...
Recommended Posts
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.