Widget API: Model:SetPosition
← 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.