Function
Fast
Cable:SetLinearMotorVelocitySettings
Sets which linear velocity drives are enabled and the target velocity
Syntax
my_cable:SetLinearMotorVelocitySettings(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 velocity drive on X |
enable_drive_y
optional
|
boolean | false |
Enable the linear velocity drive on Y |
enable_drive_z
optional
|
boolean | false |
Enable the linear velocity drive on Z |
strength
optional
|
float | 0 |
Velocity strength of the drive (damping) |
target
optional
|
Vector | Vector(0, 0, 0) |
Target velocity |