Yue Posted July 10, 2018 Share Posted July 10, 2018 I understand the concept of hinge, ball and slider in the joints. Only with hinges I am able to implement a simple prototype of wheels, when you already understand everything is very easy, however if I put suspension to the wheel, the hinge of articulation is blocked for its movement, Any suggestions? --Script for tire on Vehicle Script.chassis = nil --entity "Chassis" local motor local amortiguador function Script:Start() motor = Joint:Hinge(self.entity:GetPosition().x, self.entity:GetPosition().y, self.entity:GetPosition().z, 0, 0, 1, self.entity, self.chassis ) motor:DisableLimits() -- Error here. --[[ amortiguador = Joint:Slider(0, 0, 0, 0, 1, 0, self.entity, self.chassis ) amortiguador:EnableLimits() amortiguador:SetLimits(-0.2, 0.2 ) amortiguador:EnableMotor() ]] end Quote 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.