This commit is contained in:
Joe 2026-02-02 12:08:47 -06:00
parent a9b4f8e83b
commit e6efc04756
8494 changed files with 495610 additions and 0 deletions

View file

@ -0,0 +1,69 @@
# This file is automatically generated. Please don't edit it manually.
# To submit a bug report on the content, see
# https://devforum.roblox.com/c/bug-reports/documentation-issues/72
name: Part
type: class
memory_category: BaseParts
summary: |
A common type of `Class.BasePart` that comes in different primitive shapes.
description: |
The Part object is a type of `Class.BasePart`. It comes in five different
primitive shapes: Ball, Block, Cylinder, Wedge, and CornerWedge.
code_samples:
- using-a-script-to-create-a-part
inherits:
- FormFactorPart
descendants:
- FlagStand
- Platform
- Seat
- SkateboardPlatform
- SpawnLocation
tags: []
deprecation_message: ''
properties:
- name: Part.Shape
summary: |
Sets the overall shape of the object.
description: |
The Shape property sets the overall shape of the object to one of a
predetermined list of built-in shapes.
The `Enum.PartType` enum controls the shape value, and has five possible
shapes:
| Shape/Value | Description |
| ----------- | --------------------------------------- |
| Ball | A spherical shape. |
| Block | A block shape. |
| Cylinder | A cylinder shape. |
| Wedge | A wedge shape with a slope on one side. |
| CornerWedge | A wedge shape with slopes on two sides. |
`Class.MeshPart` and [solid modeling](../../../parts/solid-modeling.md)
can be used to obtain completely custom part shapes.
Collisions between balls, blocks, and wedges, and corner wedges are exact,
whereas collisions between terrain, cylinders, TriangleMeshes, and other
geometry types are approximations. This means that the ball shape can be
useful to create stable colliders for car wheels.
code_samples:
- using-a-script-to-create-a-part
type: PartType
tags:
- NotReplicated
deprecation_message: ''
security:
read: None
write: None
thread_safety: ReadSafe
category: Part
serialization:
can_load: true
can_save: false
capabilities:
- Basic
methods: []
events: []
callbacks: []