Part
A basic 3D primitive used for physics, collision, and world building.
Properties
| Property | Type | Default |
|---|---|---|
Position | Vector3 | Vector3.new(0, 10, 0) |
Size | Vector3 | Vector3.new(2, 1, 4) |
Color | Color3 | Color3.new(1, 1, 1) |
Material | EnumItem | Enum.Material.SmoothPlastic |
Transparency | number | 0 |
Anchored | boolean | true |
NeonEnergy | number | 5.0 |
CanCollide | boolean | true |
CanQuery | boolean | true |
CollisionGroup | string | "Default" |
Velocity | Vector3 | Vector3.new(0, 0, 0) |
CustomPhysicalProperties | any | PhysicalProperties.new(1, 1, 0, 1, 0) |
CurrentPhysicalProperties | any | PhysicalProperties.new(1, 1, 0, 1, 0) |
MeshScale | number | 1 |
Mass | number | 1 |
AudioCanCollide | boolean | true |
EnableFluidForces | boolean | false |
Restitution | number | 0.5 |
Elasticity | number | 0.5 |
Friction | number | 0.3 |
Shape | EnumItem | Enum.PartType.Block |
CastsShadow | boolean | true |
Reflectance | number | 0 |
Roughness | number | 0.5 |
Metallic | number | 0 |
Locked | boolean | false |
Orientation | Vector3 | Vector3.new(0, 0, 0) |
Rotation | Vector3 | Vector3.new(0, 0, 0) |
MouseOverObject | boolean | false |
CFrame | CFrame | CFrame.new(0, 10, 0) |
ElapsedTime | number | 0 |
Name | string | "Part" |
IsKinematic | boolean | false |
CastShadow | boolean | true |
_mesh | any | nil |
_manifoldptr | any | nil |
AssemblyAngularVelocity | Vector3 | Vector3.new(0, 0, 0) |
AssemblyCenterOfMass | Vector3 | Vector3.new(0, 0, 0) |
AssemblyLinearVelocity | Vector3 | Vector3.new(0, 0, 0) |
AssemblyMass | number | 0 |
AssemblyRootPart | any | nil |
NetworkOwnerType | EnumItem | Enum.MachineNetworkOwner.Server |
Functions
`UpdateManifoldPointer`
`syncFromCFrame`
`syncFromPosition`
`setupTouchSignals`
`instance:ApplyImpulse`
Applies physics impulse.
`instance:ApplyImpulseAtPosition`
Applies physics impulse at a specified position.
`instance:CanCollideWith`
Returns whether the parts can collide with each other.
`updatePhysicsParticipation`
UpdateManifoldPointer
Arguments
instance, sizeOverrideReturns
This function returns nothing.
syncFromCFrame
Arguments
instance, cfReturns
This function returns nothing.
syncFromPosition
Arguments
instance, positionReturns
This function returns nothing.
setupTouchSignals
Arguments
instance, rendererReturns
This function returns nothing.
instance:ApplyImpulse
Applies physics impulse.
Arguments
self: table, v: Vector3Returns
This function returns nothing.
instance:ApplyImpulseAtPosition
Applies physics impulse at a specified position.
Arguments
self: table, v: Vector3Returns
This function returns nothing.
instance:CanCollideWith
Returns whether the parts can collide with each other.
Arguments
self: table, part: PartReturns
This function returns nothing.
updatePhysicsParticipation
Arguments
This function takes no arguments.
Returns
This function returns nothing.
API
instance:UpdateManifoldPointer(instance, sizeOverride)
instance:syncFromCFrame(instance, cf)
instance:syncFromPosition(instance, position)
instance:setupTouchSignals(instance, renderer)
instance:ApplyImpulse(self: table, v: Vector3)
instance:ApplyImpulseAtPosition(self: table, v: Vector3)
instance:CanCollideWith(self: table, part: Part)
instance:updatePhysicsParticipation()