Discord
Steam
/
Garry's Mod
/
Developers
/
How to draw on..
Login/Join
Event Log
How to draw on the front of a money printer?
1 replies, posted
Search
In This Thread
I'm trying to draw some text on the front of the printer but I dont know what cam.Start3D2D math I have to use. [lua] Ang:RotateAroundAxis(Ang:Up(), 90) cam.Start3D2D(Pos + Ang:Up() * 3.1, Ang, 0.11) draw.RoundedBoxEx( 2, -99, -68, 198, 125, self.topColor, false, false, false, false ) draw.RoundedBoxEx( 2, -99, -68, 198, 66, self.botColor, false, false, false, false ) draw.WordBox(2, -TextWidth*0.53, -52, self.printerName, "HUDNumber5", Color(0, 0, 0, 0), Color(255,255,255,255)) draw.WordBox(2, -TextWidth2*0.5, 10, owner, "HUDNumber5", Color(0, 0, 0, 0), Color(255,255,255,255)) cam.End3D2D() cam.Start3D2D(Pos + Ang:Forward() * 5, Ang, 0.11) draw.WordBox(2, 50, 150, "HEALTH: "..self:GetPrinterHealth(), "HUDNumber5", Color(0, 0, 0, 0), Color(255,255,255,255)) --draw.RoundedBox( 0, 150, 150, 200, 200, Color(255,255,255,255) ); cam.End3D2D()[/lua] What front I mean [t]http://images.akamai.steamusercontent.com/ugc/389923815253823123/69BDF8F56A46D576D13FCCD7FFBAD244A4410973/[/t]
[code]Ang:RotateAroundAxis(Ang:Up(), 90)[/code] You need to fix this for your second 3D2D. Right now it's relative to the upward axis.
Sorry, you need to
Log In
to post a reply to this thread.