Part

:Not to be confused with the class.
A part is an instance that represents an individual collidable polygon mesh rendered within the 3D scene. Parts are essentially the building blocks of the world of a place. Roblox has classes for different types of parts, with as the base class which includes members that allow changing a part's appearance and physical properties. In run time, parts' motion and collision are simulated by the physics engine. The process of assembling parts to form a model or a world is known as building. Roblox Studio facilitates this process.
A unit in Roblox is known as a stud, which is used to measure parts and distances. The internal texture of a part's surface other than Smooth represents studs.
== History ==
Trusses were added to Roblox on April 24, 2009, alongside the Slate material and the Universal surface.
On April 4, 2013, bevels were removed for performance reasons. Furthermore, a blog post was published stating that "they hurt performance and don't fit our vision for the future look of ROBLOX".
In 2018, the Torso MeshType (representing a isosceles trapezoid) would be deprecated and the MeshType would act as a block instead.https://devforum.roblox.com/t/specialmeshmeshtypeenummeshtypetorso-will-be-deprecated-soon/101765
== Classes ==
The serves as the base class for all types of parts, which includes members that allow changing a part's appearance and physical properties: 
*The Material property changes a part's material.
*The Transparency property changes a part's transparency, with the value one rendering the part invisible.
*The Reflectance property affects how a part reflects lighting around it.
*The CanCollide property, if set to true, allows the part to collide with other parts, affecting its motion as well as others.
*The Anchored property, if set to true, prevents the part from ever moving until it is set to false.
The base class contains these sub-classes:
* has one of three simple shapes: Block, Ball and Cylinder. 
*Two more shapes are used by and . 
* is used to make "ladders" for characters to climb. 
* acts as spawn points for s. 
* acts as a seat for any character to sit on.
* represents the terrain.
* allows linking of a mesh file which will precalculate the part's collision mesh from the linked mesh.
* is a base class for solid modeling-related parts:
**, also simply known as a union, is a combination of multiple parts including other unions.
** is used to subtract from a part or a union to create a new union.
=== Part ===
 represents one of the three shapes, block, ball and cylinder, and is considered to be the most basic part for building.
=== Wedge ===
 and represents a ramp and a corner ramp, respectively. Wedges differ from the SpecialMesh wedges in that WedgeParts behave like an inclined plane, but SpecialMesh wedges behave like their parent brick.
=== Truss ===
A is a part that is climbable. Unlike parts, its dimensions cannot be less than 2 studs long. It also cannot have two or more of its dimensions be resized to more than two studs.
Trusses have a unique property called "Style" which affects their appearance, with values AlternatingSupports (supports change direction every 2x2x2 section), BridgeStyleSupports (supports only appear on 2 sides and change direction halfway), and NoSupports.
=== MeshPart ===
 allows linking content to a mesh asset, which, unlike , yields a mesh from the asset with its own generated collision mesh. The part's collision mesh is calculated based on the geometry, which can be changed through MeshPart.CollisionFidelity property.
=== Terrain ===
:
The terrain is a voxel-based mesh represented by the instance parented to the . Unlike parts, the mesh can be modified by its API or through Terrain Editor tools in Roblox Studio.
== Meshes ==
Mesh classes, including , and , change the appearance of a part's mesh when parented to the part. SpecialMesh has different shapes represented by the MeshType enum, while BlockMesh and CylinderMesh represents a block and a cylinder, respectively (similar to ). Unlike BlockMesh and CylinderMesh, SpecialMesh has the FileMesh enum item which allows it to link to a mesh asset, similar to .
== Shapes ==
Shapes are represented by both meshes and parts. Some shapes are shared by both, sometimes with different names or in different rotations. The following list compares shapes of both types:
Shape 	Part 	Mesh
Block 	("Block" PartType) 	, ("Brick" MeshType)
Ball 	("Ball" PartType) 	("Sphere" MeshType)
Cylinder 	("Cylinder" PartType)	, ("Cylinder" MeshType)
Wedge 	 	("Wedge" MeshType)
Corner wedge 	 	("CornerWedge" MeshType)
Truss 	 	
Character head	 	("Head" MeshType)
== World ==
A world refers to the where all parts and other 3D-related objects such as the sky are rendered and where physics is simulated. The Workspace provides a to manipulate the terrain and a for each client (including the server) to manipulate some of the renderer's properties.
== Physics ==
In run time, physics of all parts that are descendants of the are simulated by the physics engine. Motion can be disabled for parts that have their property Anchored set to true which are known as anchored parts. Unanchored parts that are connected to an anchored part, whether directly or indirectly, are also considered anchored.
The physics engine simulates physics of assemblies rather than individual parts. An assembly is a group of one or more parts connected by a weld (such as ) or an animated joint ().
The engine automatically precalculates each 's collision mesh based on its mesh geometry to optimize simulation. How the engine calculates the collision mesh can be changed through MeshPart.CollisionFidelity property.
== Legacy ==
=== FormFactor ===
FormFactor is a deprecated property that is set to a FormFactor enum. Each FormFactor enum tells a minimum size of a part as well as how the part is scaled. The FormFactor property was used in legacy building, but however, it was no longer supported by the Scale tool in Roblox Studio as well as the Resize method. FormFactor is based on Lego part sizes, where three plates stacked on top of each other becomes a brick.
== Gallery ==
=== Part ===
Brick.png|A part in 2010.
=== Truss ===
File:Trusses.jpg|The different styles of trusses, as they appear in-game.
Truss and Slate and Badges Demo.png|Truss Beams as seen in the "Truss and Slate" demo.
Truss 4.jpeg
Truss 3.jpeg
Truss 2.jpeg
Truss 1.jpeg
==Trivia==
 
*Players used to be able to quickly climb trusses by holding the space bar while climbing. However, this can no longer be done (as the player now simply jumps off the truss) due to updates in physics and player animations.
*In older versions of Roblox, the thumbnails of models that were deleted appeared as a red truss.
== References ==
== External links ==
*Parts on the Roblox Creator Documentation
*BasePart on the Roblox Creator Documentation
*Understanding Assemblies on the Roblox Creator Documentation
Category:Game development
Category:Experience features