WoW:API Model SetPosition: Difference between revisions
Jump to navigation
Jump to search
→Arguments
({{widgetmethod}}) |
|||
| Line 3: | Line 3: | ||
== Syntax == | == Syntax == | ||
SetPosition( x, y, z ); | |||
== Parameters == | == Parameters == | ||
| Line 11: | Line 9: | ||
=== Arguments === | === Arguments === | ||
:; z : float - sets the z-value of the model | :; 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 === | === Returns === | ||
: unknown, probably nil | : unknown, probably nil | ||
==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. | |||