RopeConstraint
Simulates rope dynamics, preventing two attachments from separating further than a defined length.
| Memory category | PhysicsParts |
|---|
Member index 9
Removed member index 1
| History | Member | |
|---|---|---|
| 249 | CurrentLength: float |
Description
A RopeConstraint prevents two attachments from separating further than a defined Length. The attachments can move closer together than this length and both can freely rotate. This constraint can also be powered to behave as a motorized winch.
When configuring this constraint, it may be helpful to study Roblox Units to understand how Roblox units compare to metric units.
Winch
If a rope's WinchEnabled property is enabled, it attempts to translate the attachments to a set separation specified by WinchTarget, effectively the target length of the rope in studs. This translation is controlled by WinchSpeed, WinchResponsiveness, and WinchForce.
Note that WinchSpeed must be a positive value, used to either contract or extend the rope length to WinchTarget. Setting a negative speed will revert to 0, not reverse the winch servo direction.
History 32
- 553 Change Default of WinchTarget from to 5
- 553 Change Default of WinchSpeed from to 2
- 553 Change Default of WinchResponsiveness from to 45
- 553 Change Default of WinchForce from to 10000
- 553 Change Default of WinchEnabled from to false
- 553 Change Default of Thickness from to 0.100000001
- 553 Change Default of Restitution from to 0
- 553 Change Default of Length from to 5
- 553 Change Default of CurrentDistance from to 0
- 486 Add WinchTarget
- 486 Add WinchSpeed
- 486 Add WinchResponsiveness
- 486 Add WinchForce
- 486 Add WinchEnabled
- 486 Change ThreadSafety of Thickness from ReadOnly to ReadSafe
- 486 Change ThreadSafety of Restitution from ReadOnly to ReadSafe
- 486 Change ThreadSafety of Length from ReadOnly to ReadSafe
- 486 Change ThreadSafety of CurrentDistance from ReadOnly to ReadSafe
- 462 Change ThreadSafety of Thickness from to ReadOnly
- 462 Change ThreadSafety of Restitution from to ReadOnly
- 462 Change ThreadSafety of Length from to ReadOnly
- 462 Change ThreadSafety of CurrentDistance from to ReadOnly
- 454 Change MemoryCategory of RopeConstraint from Instances to PhysicsParts
- 452 Change MemoryCategory of RopeConstraint from PhysicsParts to Instances
- 453 Change MemoryCategory of RopeConstraint from Instances to PhysicsParts
- 261 Add Thickness
- 249 Remove CurrentLength
- 249 Add CurrentDistance
- 241 Add Restitution
- 241 Add Length
- 241 Add CurrentLength
- 241 Add RopeConstraint
Members 9
CurrentDistance
| Type | Default | |
|---|---|---|
| float | 0 | |
The current distance between the constraint's Attachments.
| Thread safety | ReadSafe |
|---|---|
| Category | Derived |
| Loaded/Saved | false/true |
History 4
- 553 Change Default of CurrentDistance from to 0
- 486 Change ThreadSafety of CurrentDistance from ReadOnly to ReadSafe
- 462 Change ThreadSafety of CurrentDistance from to ReadOnly
- 249 Add CurrentDistance
Length
| Type | Default | |
|---|---|---|
| float | 5 | |
The maximum distance apart the two Attachments can be. Measured in studs.
| Thread safety | ReadSafe |
|---|---|
| Category | Rope |
| Loaded/Saved | true |
Restitution
| Type | Default | |
|---|---|---|
| float | 0 | |
Elasticity of the Attachments connected by the constraint when reaching the maximum defined Length. Constrained between 0 and 1.
| Thread safety | ReadSafe |
|---|---|
| Category | Rope |
| Loaded/Saved | true |
History 4
- 553 Change Default of Restitution from to 0
- 486 Change ThreadSafety of Restitution from ReadOnly to ReadSafe
- 462 Change ThreadSafety of Restitution from to ReadOnly
- 241 Add Restitution
Thickness
| Type | Default | |
|---|---|---|
| float | 0.100000001 | |
The visualized thickness of the RopeConstraint.
| Thread safety | ReadSafe |
|---|---|
| Category | Appearance |
| Loaded/Saved | true |
WinchEnabled
| Type | Default | |
|---|---|---|
| bool | false | |
Enables the winch motor which has the effect or reeling in/out the length of the rope to WinchTarget.
| Thread safety | ReadSafe |
|---|---|
| Category | Rope |
| Loaded/Saved | true |
History 2
- 553 Change Default of WinchEnabled from to false
- 486 Add WinchEnabled
WinchForce
| Type | Default | |
|---|---|---|
| float | 10000 | |
The maximum force that the winch motor can apply.
| Thread safety | ReadSafe |
|---|---|
| Category | Winch |
| Loaded/Saved | true |
History 2
- 553 Change Default of WinchForce from to 10000
- 486 Add WinchForce
WinchResponsiveness
| Type | Default | |
|---|---|---|
| float | 45 | |
The sharpness of the winch motor in reaching the WinchTarget.
| Thread safety | ReadSafe |
|---|---|
| Category | Winch |
| Loaded/Saved | true |
History 2
- 553 Change Default of WinchResponsiveness from to 45
- 486 Add WinchResponsiveness
WinchSpeed
| Type | Default | |
|---|---|---|
| float | 2 | |
A positive desired velocity at which the winch motor changes the rope length.
| Thread safety | ReadSafe |
|---|---|
| Category | Winch |
| Loaded/Saved | true |
History 2
- 553 Change Default of WinchSpeed from to 2
- 486 Add WinchSpeed
WinchTarget
| Type | Default | |
|---|---|---|
| float | 5 | |
The target length for the winch motor.
| Thread safety | ReadSafe |
|---|---|
| Category | Winch |
| Loaded/Saved | true |
History 2
- 553 Change Default of WinchTarget from to 5
- 486 Add WinchTarget
Removed members 1
CurrentLength
| Type | Default | |
|---|---|---|
| float | ||
| Category | |
|---|---|
| Loaded/Saved | false |
History 2
- 249 Remove CurrentLength
- 241 Add CurrentLength