Rotate WordBox

Hello. I’ve been fiddling with this for a while now and also read the wiki but no success.
I want to rotate the WordBox so that the words are, well, correctly rotated? xD
Any help is appreciated!

http://images.akamai.steamusercontent.com/ugc/496888905820087518/30E68DF303D32BC3267E29ADF57DADBD57533D3A/

Edit:
Code:


	local Ang = self:GetAngles()
	Ang:RotateAroundAxis(-Ang:Right(), 90)

	cam.Start3D2D(Pos + Ang:Up() * 12.1, Ang, 0.11)
		draw.WordBox(2, -TextWidth*0.5, -30, text, "HUDNumber5", Color(140, 0, 0, 100), Color(255,255,255,255))
		draw.WordBox(2, -TextWidth2*0.5, 18, owner, "HUDNumber5", Color(140, 0, 0, 100), Color(255,255,255,255))
	cam.End3D2D()

Thats a problem with the angle.
Try rotating it with Ang:Forward to 90

Already tried, it’s inside the box on the left side.
I don’t know how to put it on the front though.

Its basically attempt and error, you’ll have to see which number gives you the desired result…

Try messing around a bit more with Ang:RotateAroundAxis and see if it helps you

Try with all diferent things (Ang:Left, Ang:Right…) until you get it

[editline]6th February 2016[/editline]

Ninja’d

I really can’t get it to work… wtf am I supposed to do?

Magic, I mean, math.




	local Pos = self:GetPos()
	local Ang = self:GetAngles()

	local TopAng = self:GetAngles()
	local BottomAng = self:GetAngles()

	cam.Start3D2D( Pos + TopAng:Up() * 10, TopAng, 0.5 )

        cam.End3D2D()



I used that for my printers.

So you basically created 3 variables for the same value and used/named them as different values?

No shit, but I really don’t have any clue how to :stuck_out_tongue:

Ouch :frowning:

Fixed it :smiley:

For those who wonder:


	local Ang = self:GetAngles()
	Ang:RotateAroundAxis(Ang:Forward(), 90)
	Ang:RotateAroundAxis(Ang:Right(), -90)
	
	cam.Start3D2D(Pos + Ang:Up() * 12.1, Ang, 0.11)
		draw.WordBox(2, -TextWidth*0.5, -30, "some text", "HUDNumber5", Color(140, 0, 0, 100), Color(255,255,255,255))
		draw.WordBox(2, -TextWidth2*0.5, 18, "some other text", "HUDNumber5", Color(140, 0, 0, 100), Color(255,255,255,255))
	cam.End3D2D()