50 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			50 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Lua
		
	
	
	
	
	
---@meta
 | 
						|
 | 
						|
---@class Model : Frame
 | 
						|
Model = {
 | 
						|
	--- Advances the model's animation by the specified time.
 | 
						|
	--- @param seconds number The time to advance in seconds.
 | 
						|
	--- @example
 | 
						|
	--- myModel:AdvanceTime(0.1)
 | 
						|
	AdvanceTime = function(self, seconds) end,
 | 
						|
 | 
						|
	--- Clears the model.
 | 
						|
	--- @example
 | 
						|
	--- myModel:ClearModel()
 | 
						|
	ClearModel = function(self) end,
 | 
						|
 | 
						|
	--- Gets the model's facing direction in radians.
 | 
						|
	--- @return number facing The facing direction in radians.
 | 
						|
	--- @example
 | 
						|
	--- local facing = myModel:GetFacing()
 | 
						|
	GetFacing = function(self) end,
 | 
						|
 | 
						|
	--- Gets the model's position.
 | 
						|
	--- @return number x The x coordinate.
 | 
						|
	--- @return number y The y coordinate.
 | 
						|
	--- @return number z The z coordinate.
 | 
						|
	--- @example
 | 
						|
	--- local x, y, z = myModel:GetPosition()
 | 
						|
	GetPosition = function(self) end,
 | 
						|
 | 
						|
	--- Sets the model's facing direction.
 | 
						|
	--- @param facing number The facing direction in radians.
 | 
						|
	--- @example
 | 
						|
	--- myModel:SetFacing(math.pi)
 | 
						|
	SetFacing = function(self, facing) end,
 | 
						|
 | 
						|
	--- Sets the model's position.
 | 
						|
	--- @param x number The x coordinate.
 | 
						|
	--- @param y number The y coordinate.
 | 
						|
	--- @param z number The z coordinate.
 | 
						|
	--- @example
 | 
						|
	--- myModel:SetPosition(1.0, 0.0, 0.0)
 | 
						|
	SetPosition = function(self, x, y, z) end,
 | 
						|
 | 
						|
	--- Sets the model to display.
 | 
						|
	--- @param modelPath string The path to the model file.
 | 
						|
	--- @example
 | 
						|
	--- myModel:SetModel("Interface\\Buttons\\TalkToMeQuestionMark.m2")
 | 
						|
	SetModel = function(self, modelPath) end,
 | 
						|
}
 |