YouGroove Posted April 27, 2014 Share Posted April 27, 2014 Making joint:Ball Bug 1 ) General physics : small cube just passing throught floor Bug 2) For the grey joint, on level editor : the child, parent and pivot are all very near When lauching the game they got very far parent form child ? Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Josh Posted May 10, 2014 Share Posted May 10, 2014 No example to run = I can't try it myself. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Einlander Posted May 10, 2014 Share Posted May 10, 2014 I've had that happen before, the offset of the hinge changes when the hinged object is the child if another object. Quote Link to comment Share on other sites More sharing options...
YouGroove Posted May 10, 2014 Author Share Posted May 10, 2014 I re installed LE3 , so loosed test maps. After retry no more problems ? well ... good, thread can be closed. @Eilander : Here is the working code , even as child with GetPosition(true) it works. Script.parent = nil --entity function Script:Start() self.joint = self.entity:FindChild("joint") if self.joint ~= nil and self.parent ~= nil then local posJoint = self.joint:GetPosition(true) local newJoint = Joint:Ball(posJoint.x, posJoint.y,posJoint.z,self.entity,self.parent ) end end Quote Stop toying and make games 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.