• Problem With Axis
    0 replies, posted
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 [CODE]constraint.Axis( self, ent, 0, 0, self:WorldToLocal(Vector(0,0,0)),Vector(0,0,0), 0, 0, 0, 1 ,Vector(0,10,0))[/CODE] or like this [CODE]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)[/CODE] 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 [highlight](User was banned for this post ("Wrong section. Try Garry’s Mods Developer discussion next time" - Kiwi))[/highlight]
Sorry, you need to Log In to post a reply to this thread.