Function
Fast
Cable:SetLinearMotorPositionSettings
Sets which linear position drives are enabled and the target position
Syntax
my_cable:SetLinearMotorPositionSettings(enable_drive_x = false, enable_drive_y = false, enable_drive_z = false, strength = 0, target = Vector(0, 0, 0))
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
enable_drive_x
optional
|
boolean | false |
Enable the linear position drive on X |
enable_drive_y
optional
|
boolean | false |
Enable the linear position drive on Y |
enable_drive_z
optional
|
boolean | false |
Enable the linear position drive on Z |
strength
optional
|
float | 0 |
Positional strength for the drive (stiffness) |
target
optional
|
Vector | Vector(0, 0, 0) |
Target position |