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