Garry's Mod Wiki

DModelPanel:GetLookAt

Vector DModelPanel:GetLookAt()

Description

Returns the position the viewing camera is pointing toward.

Returns

1 Vector
The position the camera is pointing toward.

Example

Prints out the default camera look-at position.

local mdl = vgui.Create("DModelPanel") mdl:SetPos(20, 20) mdl:SetSize(200, 200) mdl:SetModel("models/props_junk/watermelon01.mdl") print(mdl:GetLookAt())
Output:
0.000000 0.000000 40.000000

Page Links


Special Pages


Wikis

?

Render Time: 58ms

DB GetPage 30
Generate Html 2
SaveChanges (1) 11
Render Body 0
Render Sidebar 12