Garry's Mod Wiki

DModelPanel:GetCamPos

Vector DModelPanel:GetCamPos()

Description

Returns the position of the model viewing camera.

Returns

1 Vector
The position of the camera.

Example

Prints out the default camera position.

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

Page Links


Special Pages


Wikis

?

Render Time: 82ms

DB GetPage 48
Generate Html 3
SaveChanges (1) 14
Render Body 0
Render Sidebar 14