Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
m (catfix, Replaced: {{widgetmethod}}<br> → {{widgetmethod}})
m (SetPosition returns zero values.)
Line 20: Line 20:
 
=== Returns ===
 
=== Returns ===
   
  +
: Nothing
: unknown, probably nil
 
   
 
==Notes==
 
==Notes==

Revision as of 00:04, 3 August 2008

Syntax

SetPosition( x, y, z );

Parameters

Arguments

x
float - sets the x-value of the model position
y
float - sets the y-value of the model position
z
float - sets the z-value of the model position


positive values of x will move the model right, negative will move it left
positive values of y will move the model up, negative will move it down
positive values of z will bring the model nearer to you, negative will bring it away

Returns

Nothing

Notes

The width and height of the Model frame affect the outcome of this function. ie the effect of calling SetPosition( 0.01, 0.01, 1 ) on a Model frame with width 200px and height 200px, will be different to calling SetPosition( 0.01, 0.01, 1 ) on a Model frame with width 150px and height 150px

Changing the scale of the Model does not seem to change the effect of this function.