• Relative vector problem for 3d2d text
    2 replies, posted
[Google translation <3] Hello I come on this forum to explain my problem of an addons. This problem based on the fact that I do not know how to create a vector related to my entity because when I move it all the text on my 3d2d turns in any direction and I know that the problem comes from the + vector (0, -90 , 90) because without it it works perfectly but does not have the desired direction. Thank you for your help which will be useful or not thank you even <3 [QUOTE] local Pos = self:GetPos() local Ang = self:GetAngles() cam.Start3D2D(Pos+Ang:Right()*-7.5+Ang:Up()*19+Ang:Forward()*-34.5, Ang + Angle(0,-90,90) , 0.1)[/QUOTE]
[QUOTE=dx9er;52454626]Use [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Angle/RotateAroundAxis]Angle:RotateAroundAxis[/url] Like this: [code]local Ang = self:GetAngles() Ang:RotateAroundAxis(Ang:[DIRECTION](), 90) [/code][/QUOTE] Oh it works thank you very much <3
Sorry, you need to Log In to post a reply to this thread.