Problem With Axis

Hey there,
Im trying to programm an axis between 2 entities, but i dont get it to work the way i want it to be,
The axis should be a hinch between a car and the entity,
my axis looks like this


constraint.Axis( self, ent, 0, 0, self:WorldToLocal(Vector(0,0,0)),Vector(0,0,0), 0, 0, 0, 1 ,Vector(0,10,0))

or like this


constraint.Axis(ent,self,0,0,self:LocalToWorld(Vector(0,0,0))-self:GetPos(),self:LocalToWorld(Vector(-0,10,0))-self:GetPos(),0,0,0,1)

ive tryed different way, and this one was the most relyable, but still not what i wanted,
my question is:

  • How can i offset the axis on the first entity ( self ) and how do i set the axis to be lengthwise to the first entity ( self)

i hope someone can helpe with this


(User was banned for this post ("Wrong section. Try Garry’s Mods Developer discussion next time" - Kiwi))