Entity help

I’m making an entity that projects a 3D panel infront of it, now I have encountered the problem where I want to set the angles of the 3D panel according to the angles of the “placeholder” model.

Code:



include("shared.lua")

local html = vgui.Create("HTML")
html:SetPos(ScrH(), ScrW())
html:SetSize(256, 256)
html:SetHTML([[
	<html>
	</body>
	This is a test
	</body>
	</html>
]])

function ENT:Draw()
	self:DrawModel()
	self:DrawPanel()
end

function ENT:DrawPanel( )
	if html:GetHTMLMaterial() then
		cam.Start3D(LocalPlayer():EyePos(), LocalPlayer():EyeAngles())
			render.SetMaterial(html:GetHTMLMaterial())
			render.DrawQuadEasy( self:GetPos(), 
			Vector( self:GetAngles():Right(), self:GetAngles():Up(), self:GetAngles():Forward()),        
			128, 128,              
			Color( 255, 255, 255, 255 ),  
			180 )                     
		cam.End3D()
	end
end


Bumpety bump.