Jump to content

Script Vehicle


Yue
 Share

Recommended Posts

 

Vehicle analysis.

As you will have two vehicles, this vehicle is something special, because in its four wheels has four bells, then in the back the two bells will have two spring unions that stick to the chassis, in turn the tires are attached to each bell with a hinge union. 

On the front transmission I do not yet have it very clear, initially must be think a hinge union to turn the bell and then the spring union, I have to think better this. 

Any suggestion is welcome.



image.thumb.png.c017f677215ba0bd137aa50c1dd254da.png

Mars.jpg.89ab63a64eebc1f5ada0ab82b66a1f8c.jpg

 

 

Link to comment
Share on other sites

Working on the suspension of the vehicle, the prototype looks, well, a hard suspension.

 


		-- Constructor Vehicle.
		function this:Start()
			

			self.jointFL = Joint:Slider(self.bell0:GetPosition(false).x,self.bell0:GetPosition(false).y,self.bell0:GetPosition(false).z,0,1,0, self.chassis, self.bell0)
			self.jointFL:EnableLimits()
			self.jointFL:SetLimits(-0.1,0.1)
			self.jointFL:SetSpring(100)
			
			self.jointFR = Joint:Slider(self.bell1:GetPosition(false).x,self.bell1:GetPosition(false).y,self.bell1:GetPosition(false).z,0,1,0, self.chassis, self.bell1)
			self.jointFR:EnableLimits()
			self.jointFR:SetLimits(-0.1,0.1)
			self.jointFR:SetSpring(100)


			self.jointBL = Joint:Slider(self.bell2:GetPosition(false).x,self.bell2:GetPosition(false).y,self.bell2:GetPosition(false).z,0,1,0, self.chassis, self.bell2)
			self.jointBL:EnableLimits()
			self.jointBL:SetLimits(-0.1,0.1)
			self.jointBL:SetSpring(100)
			
			self.jointBR = Joint:Slider(self.bell3:GetPosition(false).x,self.bell3:GetPosition(false).y,self.bell3:GetPosition(false).z,0,1,0, self.chassis, self.bell3)
			self.jointBR:EnableLimits()
			self.jointBR:SetLimits(-0.1,0.1)
			self.jointBR:SetSpring(100)


			

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