BallSocketConstraint
Creates a ball-and-socket joint between two attachments.
Properties
| Property | Type | Default |
|---|---|---|
Attachment0 | any | nil |
Attachment1 | any | nil |
Enabled | boolean | true |
Visible | boolean | true |
Color | any | Color3.fromRGB(255, 255, 0) |
Radius | number | 0.1 |
Name | string | "BallSocketConstraint" |
Functions
`cleanup`
Cleans up the resources.
`rebuild`
Rebuilds the state.
`onPartChanged`
On part changed.
`drawGizmo`
Draws the visual representation.
cleanup
Cleans up the resources.
Arguments
This function takes no arguments.
Returns
This function returns nothing.
rebuild
Rebuilds the state.
Arguments
This function takes no arguments.
Returns
This function returns nothing.
onPartChanged
On part changed.
Arguments
prop: anyReturns
This function returns nothing.
drawGizmo
Draws the visual representation.
Arguments
This function takes no arguments.
Returns
This function returns nothing.
API
instance:cleanup()
instance:rebuild()
instance:onPartChanged(prop: any)
instance:drawGizmo()