Kinemium Docs

BallSocketConstraint

Creates a ball-and-socket joint between two attachments.

Properties

PropertyTypeDefault
Attachment0anynil
Attachment1anynil
Enabledbooleantrue
Visiblebooleantrue
ColoranyColor3.fromRGB(255, 255, 0)
Radiusnumber0.1
Namestring"BallSocketConstraint"

Functions


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: any

Returns

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()

On this page