Jump to content
๐Ÿ’ŽYue๐Ÿ’Ž

Script Vehicle

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

Share this post


Link to post
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

ย 

ย 

ย 

Share this post


Link to post
Share on other sites

Update First Post, file Script Vehicle.

I already have the vehicle's rear transmission.

The next step is to work on the front transmission, which includes wheel steering, spring and wheel motor.

  • Like 1

Share this post


Link to post
Share on other sites

ร—
ร—
  • Create New...