Jump to content

Joint Physic bugs


YouGroove
 Share

Recommended Posts

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 ?

post-3271-0-50141600-1398596665_thumb.jpg

post-3271-0-06069900-1398596676_thumb.jpg

Stop toying and make games

Link to comment
Share on other sites

  • 2 weeks later...

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

post-3271-0-46399400-1399762522.jpg

Stop toying and make games

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