Jump to content

joint:SetLimits() is ignored


shadmar
 Share

Recommended Posts

I noticed joints doesn't take limits anymore when created (argument doesn't exists)

So I tried to use SetLimits()

 

 

..But it seems to be ignored not matter the joint type.

 

Simple test for hinge :

 


box=Model:Box()

box:SetPosition(0,11,0)

box:SetMass(1)

local shape = Shape:Box(0,0,0, 0,0,0, 1,1,1)

box:SetShape(shape)

 

box2=box:Instance()

box2:SetMass(0)

box2:SetPosition(1,11,0)

 

local joint = Joint:Hinge(0.5,11,0,0,0,1,box,box2)

joint:SetLimits(-2,2)

HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...