Position (Property): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>NXTBoy What's the problem? |
>Trappingnoobs Fixed again. Lots of OBJECTS include this, I _KNOW_ they shouldn't, but some idiot make them when they made the object. Leave noincludes until somone fixes. |
||
Line 1: | Line 1: | ||
When used in 3D objects, such as [[Part]]s and other items, this property is a [[Vector3]]. | <noinclude>When used in 3D objects, such as [[Part]]s and other items, this property is a [[Vector3]].</noinclude> | ||
{{:Position (Property)/Vector3}} | {{:Position (Property)/Vector3}} | ||
Line 6: | Line 6: | ||
{{clear floats}} | {{clear floats}} | ||
When used in 2D GUI objects, such as [[TextButton]]s, this property is a [[UDim2]] instead. This is because 2D 'HUD' objects need to be placed differently on the screen than 3D 'World' objects. | <noinclude>When used in 2D GUI objects, such as [[TextButton]]s, this property is a [[UDim2]] instead. This is because 2D 'HUD' objects need to be placed differently on the screen than 3D 'World' objects.</noinclude> | ||
{{:Position (Property)/UDim2}} | {{:Position (Property)/UDim2}} | ||
Line 12: | Line 12: | ||
{{clear floats}} | {{clear floats}} | ||
'''Note, the lowercase property operates differently.''' Rather than setting the location of an object, the lowercase '''position''' property specifies a goal location for that object. | <noinclude>'''Note, the lowercase property operates differently.''' Rather than setting the location of an object, the lowercase '''position''' property specifies a goal location for that object.</noinclude> | ||
{{:Position (Property)/Goal}} | {{:Position (Property)/Goal}} | ||
[[Category:Properties]] | <noinclude>[[Category:Properties]]</noinclude> |
Revision as of 16:00, 2 February 2012
When used in 3D objects, such as Parts and other items, this property is a Vector3.
Position | |
Property | Vector3 Position |
Description | Stores the current location of the object in world coordinates. |
Member of | BasePart, Explosion |
When used in 2D GUI objects, such as TextButtons, this property is a UDim2 instead. This is because 2D 'HUD' objects need to be placed differently on the screen than 3D 'World' objects.
Position | |
Property | UDim2 Position |
Description | Sets the position of the GUI object in object coordinates. |
Member of | GuiObject |
Note, the lowercase property operates differently. Rather than setting the location of an object, the lowercase position property specifies a goal location for that object.
position | |
Property | Vector3 position |
Description | Sets the goal position for the object. |
Member of | BodyPosition |