Hi
This is my 3d2dcam:
[CODE]
local Pos = self:GetPos()
local Ang = self:GetAngles()
surface.SetFont("HUDNumber5")
Ang:RotateAroundAxis(Ang:Up(), -90)
Ang:RotateAroundAxis(Ang:Forward(), 7)
local TextWidth = surface.GetTextSize(speed)
cam.Start3D2D(Pos + Ang:Up() * 55.5, Ang, 0.1)
draw.WordBox(-2.5, -TextWidth*-1.13, 0, speed, "HUDNumber5", Color(140, 0, 0, 140), Color(255,255,255,255))
cam.End3D2D()[/CODE]
What I want to do, is to rotate it so it's standing up, currently it's:
[IMG]http://i.imgur.com/z6S7oHO.png[/IMG]
So you need to stand above it to read it.
I want it like this:
[IMG]http://i.imgur.com/enu4hOF.png[/IMG]
I don't understand, just use RotateAroundAxis?
[QUOTE=Kuro Light;42132092]I don't understand, just use RotateAroundAxis?[/QUOTE]
I've tried, but it didn't rotate it down like I want it to, it spinned or went up and down.
[QUOTE=Busan1;42132221]I've tried, but it didn't rotate it down like I want it to, it spinned or went up and down.[/QUOTE]
You must pass entity:GetUp()/GetRight/GetForward functions to the first argument of rotatearoundaxis.
Sorry, you need to Log In to post a reply to this thread.