WoW:API Model SetPosition: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
({{widgetmethod}})
Line 3: Line 3:
== Syntax ==
== Syntax ==


SetPosition( z );
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




: positiv values will bring the model nearer to you, negative will bring it away  
: 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.

Revision as of 17:11, 20 August 2006

Widget API ← Model < SetPosition

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

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.