Part
A common type of BasePart that comes in different primitive shapes.
Memory category | PhysicsParts |
---|
Member index 3
Description
The Part object is a type of BasePart. It comes in five different primitive shapes: Ball, Block, Cylinder, Wedge, and CornerWedge.
History 8
Members 3
Shape
Type | Default | |
---|---|---|
PartType | Block |
The Shape property sets the overall shape of the object to one of a predetermined list of built-in shapes.
The 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. |
MeshPart and solid modeling 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.
This property is not replicated. Its interface does not cross the network boundary.
Thread safety | ReadSafe |
---|---|
Category | Part |
Loaded/Saved | true/false |