Jump to content

And the tire with the suspension?


Yue
 Share

Recommended Posts

 

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? 

image.png.f0fd80777a3793484dad21936f219dce.png

 

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

 

Mars.jpg.89ab63a64eebc1f5ada0ab82b66a1f8c.jpg

 

 

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